Where do I add the google experiment code for A/B testing so it would be above the original google analytics tracking code?
1. I've tried to put in the Pagelines Advanced settings
2. and in the functions php file, but none of that worked.
I'm using a SEO yoast plugin to connect wordpress with GA and there are no settings to add the code before the original one.
If I'm using PL5 with PL5 Framework, what is the best way to include Google Analytics code?
I know we have an Advanced section in Settings but that just allows for Header scripts. Should we also have a footer (after body) section to place scripts like GA.
If not, where should I add it?
I had Google Analytics working on a site which I just completely redid using DMS. I took the site live last Monday night and forgot to put in the tracking code for the first few days and then last Friday put it in (added to the Custom CSS box) and checked the source code for the home page and it was showing in there.
Today there is still no data showing up in Analytics for the past week including today and I contacted tech support for Analytics and the rep said the source code was not showing the Analytics tracking code. I then realized that I was logged in and he was not so I logged out of WP and rechecked the source code for the page and when I checked it this time it was not showing up.
I checked further and noticed that I would insert the code into Custom CSS and then save it and Publish and when I logged out and back in it wouldn't be there but there would be something starting with 'Minify'. My minify plugin was already deactivated so I deactivated my auto-optimize plugin and then the Analytics code would stay correct in the Custom CSS when I logged out and in again. But even after this it still wouldn't show in page source code when I logged out. I even cleared the cache to make sure that wasn't the issue but it didn't fix this problem.
I'm using DMS version 1.1.5 with the child theme version 1.0.1 and WP version 3.8.1. The site is http://clearwaterbeachcondosforsale.com. Would love to get some help in sorting this out. Analytics has people to help with getting the code working but I know from past experience that when the issue is theme-related it is better to get help from the theme people because either the Analytics people will say they can't help or they will suggest something that may cause other problems.
Whatever I do, my Google Analytics Status says: Tracking Not Installed. I've been playing with it for a couple of weeks now. I've pasted my snippet to Editor > Footer.php, as well as to Site Options > Custom Code > Footerscripts Code or Analytics. I've also tried several plugins. I went back and I made sure I followed all the steps. Nothing seems to be working. According to Google forums, a lot of people seem to be facing this problem. Unfortunately, one cannot expect much help from Google. :)
Am I missing something? Do you have any ideas? Any help appreciated. ;)