Google is going to upgrade its Analytics system to Universal Analytics. And Google wants we implement the new Universal Analytics tracking code.
Question: How can we update our system? How can we implement new Universal Analytics tracking code?
My Cs-Cart version: 3.0.6 MVE
[quote name='ooaykac' timestamp='1397727037' post='181869']
Google is going to upgrade its Analytics system to Universal Analytics. And Google wants we implement the new Universal Analytics tracking code.
Question: How can we update our system? How can we implement new Universal Analytics tracking code?
My Cs-Cart version: 3.0.6 MVE
[/quote]
Please check this article:
https://developers.google.com/analytics/devguides/collection/upgrade/guide#overview
New tracking code can be added on the “Google Analytics” settings page in the admin panel.
The google code is located in the following files:
All pages:
“skins/basic/customer/addons/google_analytics/hooks/index/footer.post.tpl”
Order landing page:
“addons/google_analytics/func.php”
Hope that helps
In version 4.1.x edit -
design/themes/xxxxxxx/templates/addons/google_analytics/hooks/index/footer.post.tpl
and replace the line
ga.src = (“https:” == document.location.protocol ? “https://ssl” : “http://www”) + “.google-analytics.com/ga.js”;
with
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
I changed the code in every google_analytics/hooks/index/footer.post.tpl file (there were 4 including basic theme + 3 theme i installed )
Also changed in theme repository
but it is not working - tried admin?cc also
but the view-page-source: still shows the old code and "Validate Tracking Code " could not validate the change - what i could be doing wrong ?
my cs-cart is licensed 4.0.3
Might try clearing the template cache via &ctpl You might also have the clear your browser cache.
Thanks Tony ,
admin?ctpl did the thing
Thanks a lot
Just for anyone having issues with:
REMARKETING WITH GOOGLE ANALYTICS
Update your Analytics tracking code to support Display Advertising
Enable Remarketing and Advertising Reporting Features in Analytics - Analytics Help
We added the line:
ga('require', 'displayfeatures');
to
addons/google_analytics/hooks/index/scripts.post.tpl
Code for 4.1.5 is now
{script src=“js/addons/google_analitycs/google_analitycs.js”}