google analytics not working - RESOLVED1 user found helpful
I'm working from a Natural Concrete theme and I've tried installing google analytics in a number of ways to no avail. I've contacted the theme creator but I need to figure this out quickly.
I've done it through the Dashboard > Tracking Codes, but when I go to save it the entry disappears. If I inspect the document I end up seeing the ga.js entry in the <body> but it's a lot longer than the regular tracking code I copied and pasted from GA. After waiting many hours it still doesn't show up in GA.
I also tried inserting the snippet before </head>, before </header>, after <body>, before </body>, and before </footer> and again I can see the long entry(too long to show here), but after waiting a good amount of time I couldn't see the entry in GA.
<?php Loader::element('footer_required'); ?> is present in 'footer.php' and I believe that's where the C5 dashboard entry goes. I've also cleared the cache as per usual.
Do you have any thoughts on what might be going on?
my ga.js is as follows:
ga('create', 'UA-XXXXXXXX-X', 'XXXXXXXXX.com');
What version of concrete5 are you using?
Then clear your cache