Support Home Page › Forums › Joomla Software › Easy Google Analytics Plugin › Conflict with JCE Mediabox
- This topic has 16 replies, 2 voices, and was last updated 11 years, 1 month ago by Michael Gilkes.
-
AuthorPosts
-
August 2, 2013 at 10:45 am #207lauraParticipant
Hi,
I recently installed your Google Analytics plugin and it works great but it has stopped my JCE Mediabox from working on my home page. It works everywhere else.
I know it is the the plugin which is causing the conflict as i disabled it just to check and JCE Media box started working again.
I tried a couple of other light boxes and they wont work on the home page either.
Have you ever encountered this before and if so do you have a fix other than changing to another Analytics plugin.
Thanks
Laura
August 2, 2013 at 1:04 pm #1353Michael GilkesKeymaster@laura. Thanks for posting. This is the first time I am hearing about such an error. Could you please post a link to the webpage with the issue so that I can see what is going on?
To be honest, I can’t think of any reason why there would be a conflict. The google javascript code is unobtrusive. I would like to examine the page myself.
However, you need to let me know what your Joomla version is, and what settings you have for the plugin.
August 2, 2013 at 1:42 pm #1354lauraParticipantHi Michael,
Thank you for getting back to me so quickly.
I tried updating the JCE Media Box to the current version and that seems to have fixed the issue.
Thanks for taking the time to get back to me.
Cheers
Laura 🙂
August 5, 2013 at 1:05 pm #1355lauraParticipantHi Michael,
I seem to have been mistaken when I said my issue was fixed.
I am using Joomla version 2.5.9.
Here is a link to my demo site: http://akeeba.edesix.webfactional.com/
When you click on the video image links the popup doesn’t work. When you remove the Google plugin they do. This only happens on the home page. I have pop up videos else where and they work.
Any help would be much appreciated.
Laura
August 5, 2013 at 3:44 pm #1356Michael GilkesKeymaster@laura. Thanks for posting. My plugin runs on every page. So, if the pop ups work on all the other pages and not on the home page, most likely, something is going on on the home page. Also, when i have visual problems like this, i usually check the browser’s console for error messages. You should practice that too. When i did so of your site, I see that following screen. I think that the problem you are having has to do with this error:
Blocked a frame with origin “https://clickberry.tv” from accessing a frame with origin “http://www.youtube.com”. The frame requesting access has a protocol of “https”, the frame being accessed has a protocol of “http”. Protocols must match.
Also there is nothing in the Google Analytics javascript code that should interact with the JCE Mediabox code. Also, I didn’t write the Google Analytics javascript code. It is code that Google provides.
The only other thing I can think of is for you to turn off the Outbound Links feature. You can do this by setting “Enable Event Tracking” to No. Maybe when Google tries to track outbound links, it causes a conflict with the external videos and the different protocols, as specified in the error above. Try it and let me know what happens.
August 5, 2013 at 4:07 pm #1357lauraParticipantHi Michael,
Thanks again for replying 🙂
I have turned off Event Tracking like you suggested and it has started working again.
This is however a feature my employers are keen to have for the site but I understand it is a Google thing rather than yourself.
Thanks again
Laura
August 5, 2013 at 7:03 pm #1358Michael GilkesKeymaster@laura. Well, laura… now that we have isolated what triggers the issue. The next question is why? I am sure we can devise a way to get everything to work once we understand what JCE Medicabox does with links that is affected by the Event tracking. I will try to install JCE Mediabox on one of my websites and see how I can understand what is going on. IN order to facilitate that, could you email me with how you set up JCE Mediabox on your homepage, so that I can set it up exactly how you have it to replicate the same situation?
August 6, 2013 at 8:09 am #1359lauraParticipantHi Michael,
I have set up the links in a custom HTML module.
I use the JCE Editor and there is an option within that to add a jcepopup class to the link.
Here is the code:
<a class="jcepopup noicon" title="What is VideoBadge?" type="iframe" href="http://youtu.be/Cgxz7_ZGT38" rel="title[What Is VideoBadge?::An overview of what VideoBadge is and how it works.]" target="_blank"><img onmouseover="this.src='images/Edesix/Edesix_Overview_r.jpg';" onmouseout="this.src='images/Edesix/Edesix_Overview_n.jpg';" src="images/Edesix/Edesix_Overview_n.jpg" alt="Edesix Overview r" width="215" height="151" /></a>
Thanks
Laura
August 8, 2013 at 9:51 am #1360lauraParticipantHi Michael,
Have you had any luck recreating the issue?
Thanks
Laura
August 8, 2013 at 1:18 pm #1361Michael GilkesKeymaster@laura. Thanks for following up. I have not been able to recreate the issue. I realize that you use the jQuery version of the Event tracking. I need to find out how do you have jQuery setup on your site. Is it through a plugin? or through the template? (and what version of jQuery as well) Let me know so that I can set it up the same way on my test site.
I want you to try one thing for me. Change the Javascript type to Mootools, instead of jQuery. And let me know if you are still having the issue.
August 8, 2013 at 1:27 pm #1362Michael GilkesKeymaster@laura. Ok. One more thing…. I see you have 2 identical references to google analytics on your site, which are not necessary.
12<script type="text/javascript" async="" src="http://www.google-analytics.com/ga.js"></script><br /><script type="text/javascript" async="" src="http://www.google-analytics.com/ga.js"></script>Why do you have these two on your site? They are not added by my plugin.
I examined your site (which I should have done to check the jQuery) and realized that you are running jQuery 1.8.2 through the imageshow component. I don’t know why I didn’t do this yesterday. No worries. I still need you to change to Mootools in the Easy Google Analytics plugin to see how that affects the outcome. I will look at it further today.
August 8, 2013 at 1:33 pm #1363lauraParticipantHi Michael,
I just tried setting Event Tracking to Yes and for it to use Mootools instead and the same thing happens.
I am using a Joomlashine template called JSN Pixel Pro and yes it uses Jquery v 1.8.2.
There is a section in the template parameters with this code:
12345678910111213<script type="text/javascript"><br /><br />var _gaq = _gaq || [];<br />_gaq.push(['_setAccount', 'UA-30822600-1']);<br />_gaq.push(['_trackPageview']);<br /><br />(function() {<br />var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;<br />ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';<br />var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);<br />})();<br /><br /></script>Do you think I should take this out?
Thanks again for being so helpful 🙂
Laura
August 8, 2013 at 1:54 pm #1364lauraParticipantHello again.
I took the analytics code out of the template parameters but still no difference.
Laura
August 8, 2013 at 5:58 pm #1365Michael GilkesKeymaster@laura. Ok. I think I figured out why it is happening. The event tracking assumes that a link is a normal link, so it tries to set it to the browser address the following javascript line:
document.location.href = link.href;
The is what is forcefully making the video go to the browser window. I have devised a fix for it. I will post a new release within the hour.
August 8, 2013 at 8:01 pm #1366Michael GilkesKeymaster@laura. I just released a new version that facilitates popups. Please go to the product page and download the new version.
-
AuthorPosts
- The topic ‘Conflict with JCE Mediabox’ is closed to new replies.