Hi Mike,
The first thing you need to do is remove your Google Analytics UA- number from All in One SEO, General Settings, Google Settings, Google Analytics ID. This will remove the standard tracking code that All in One SEO Pack outputs. One you’ve done that you can add your custom code to the Additional Post Headers, Additional Page Headers and Additional Front Page Headers fields. A better option though would be to add the tracking code to the header.php file in your theme.
You didn’t say what you were trying to customize in your tracking code. Perhaps we have a setting for what you’re trying to do.
I thought about changing the header but was concerned this would be wiped out every time theme was updated.
What I’m trying to change part of the analytics script suggested by analytics to take advantage of new demographics reporting. The change is shown below:
Original Script:
ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
Modified:
ga.src = (‘https:’ == document.location.protocol ? ‘https://’ : ‘http://’) + ‘stats.g.doubleclick.net/dc.js’;
We have an option for demographics, it’s under All in One SEO, General Settings, Google Settings, Display Advertising Tracking – http://semperplugins.com/documentation/advanced-google-analytics-settings/#displayadvertisingtracking
Great – I’ve turned that on – Should I keep the tracking code in place – looks fine now? I Put it in all 3 header sections as you recommended.
The analytics steps are:
1. Add tracking code
2. Under property settings (Admin section) set Enable Display Features to ON.
I just checked my other sites and they are not showing data after 24 hours so there my be a problem with their instructions. I completed 2 also. Sometimes their instructions are a little ambiguous so I could have missed something.
Thanks again for your supper support!
You just need to enter your UA number in All in One SEO, General Settings, Google Settings, Google Analytics ID and enable Display Advertising Tracking. The plugin will do the rest for you. You don’t need to manually add any code anywhere else.
Ok great – I’ll delete code, remove the ua number – just like your earlier steps to actually remove my code.
Thanks very much – I really appreciate your help. I’ll let you know if I get the data then.