G.Analytics tracking code bug

ThemeBurn SupportForumsOpenCart ThemesBurnEngineG.Analytics tracking code bug

This topic has been marked as resolved.

Hello!

Yesterday I have tried adding the tracking code for my analytics account. It seemed like it worked fine but today I woke up like my pictures are not shown on my webpage. Deleted the code, deleted cookies and worked fine after. My page is http://blueinstal.ro

The code is a JS code which I insterted in the Custom field – JS and looks like this:

<!– Google Analytics –>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,'https://www.google-analytics.com/analytics.js’,'ga&#8217 ;) ;

ga(‘create’, ‘XXXXXX’, ‘auto’);
ga(‘send’, ‘pageview’);
</script>
<!– End Google Analytics –>

Before deleting the code, I have tried deleting cookies, resfreshing the page a lot but nothing seemed to work.
Is this problem related to Opencart/Burnengine or should I contact Google help?
Thanks in advance!

September 8, 2016 at 10:12 am #50773

Hi,

Have you tried to insert the analytics code without the <script> tags (opening and closing)?

BR,
ThemeBurn team

September 14, 2016 at 6:40 pm #50944

Hi!

I gotta say, I wouldn’t have guess that could do it.
I deleted the script tags and now it seems like it’s working. I thought it has to be in there…

Thanks!

September 22, 2016 at 3:39 pm #51260

Glad we’ve helped :)

If you like our products, we will be grateful, if you leave your rating at ThemeForest.

BR,
ThemeBurn team

September 22, 2016 at 4:24 pm #51266

i am having trouble here too, I inserted without the script tags in both stores i have (multi store, different tracking codes)
the script Does load up on my default but shows up on the multi.
any tips?

July 24, 2019 at 2:00 am #67874
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.