Jump to content
Sign in to follow this  
pagelineuser

Where do I paste my Google Analytics Code?

Recommended Posts

pagelineuser

The instructions from Google are: "Copy the following code, then paste it onto every page you want to track immediately before the closing tag." Where exactly do I place this code? I'm very new to wordpress and platform pro.

Share this post


Link to post
Share on other sites
nbenson

Go to platform pro settings > Custom code > Footer scripts and analytics

Share this post


Link to post
Share on other sites
puntNL

I use asynchronous analytics. Followed the advice of NBenson: pro settings > Custom code > asynchronous analytics placeholder > save Then I checked my header script, but can't find the analytics code. I do find, however, some advice from Pagelines here:' Recommended spot to place google asynchronous code': <?php print_pagelines_option('asynch_analytics'); // Recommended Spot For Asynchronous Google Analytics pagelines_register_hook('pagelines_before_site'); // Hook ?>

Share this post


Link to post
Share on other sites
Rob

If you're going to edit your functions.php to add a custom hook, save a copy separately BEFORE you make any changes and place it on your desktop. Then, make your changes to the one present on your site. If anything goes wrong, simply upload the one on your desktop to replace the broken one and your site will be fixed immediately. Then, we can work out alternative solutions.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
puntNL

Sorry I'm not experienced with hooks yet. Just want to add my goog asyncrhonous analytics code on the correct spot via PP and that's is not working, as I could check in analytics account and within my header script..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×