Thankyou for speedy response.
I hadn't marked it as installed yet as I didn't think I had fully installed it. I've marked it now.
I thought I had to add my Google analytics code above the </body> tag of one of the files?
Thankyou for speedy response.
I hadn't marked it as installed yet as I didn't think I had fully installed it. I've marked it now.
I thought I had to add my Google analytics code above the </body> tag of one of the files?
No just import the XML file via plugins and products.
They add your key in the settings/options in the adminCP.
This adds the code for you automatically.
Remember it takes 24hours for Google to collect data. To make sure it works look at the source code and make sure the google code is displayed just above the </body> tag.
When adding or inserting Google Analytics tracking code in vBulletin 4 forums software, either in styles, templates, plugins, products or ad HTML code of newly added advertising function, error message similar to the following may appear when saving the code:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected ‘[‘
in /home/forums/includes/adminfunctions_template.php(4595) : eval()’d code on line 18
This is likely caused by a malformed conditional statement. It’s highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Two options of “Go Back” or “Continue” are available for user selection. And of course, even if user forcefully save and make active or enable the Google Analytics tracking code, the script doesn’t work, and does not appear on web pages.
Google Analytics tracking code or script contains some special characters which does not parse properly. Thus, in order to embed Google Analytics tracking code, the easier way is to wrap the code with <vb:literal> and </vb:literal> tags so that the code is treated literally during page rendering.
The Google Analytics tracking code can be placed in footer template, or better suggestion is to place it into ad_footer_end template (inside Ad Location Templates) as to avoid future upgrading issues where templates need to manually merged.
When adding or inserting Google Analytics tracking code in vBulletin 4 forums software, either in styles, templates, plugins, products or ad HTML code of newly added advertising function, error message similar to the following may appear when saving the code:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected ?[?
in /home/forums/includes/adminfunctions_template.php(4595) : eval()?d code on line 18
This is likely caused by a malformed conditional statement. It?s highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Two options of ?Go Back? or ?Continue? are available for user selection. And of course, even if user forcefully save and make active or enable the Google Analytics tracking code, the script doesn?t work, and does not appear on web pages.
Google Analytics tracking code or script contains some special characters which does not parse properly. Thus, in order to embed Google Analytics tracking code, the easier way is to wrap the code with <vb:literal> and </vb:literal> tags so that the code is treated literally during page rendering.
The Google Analytics tracking code can be placed in footer template, or better suggestion is to place it into ad_footer_end template (inside Ad Location Templates) as to avoid future upgrading issues where templates need to manually merged.
Simple install my plugin. Makes it easier all the way around.