Jump to content
welcome

Pasting Google tracking code to web pages

Recommended Posts

welcome

I've tried searching for the answer, but "my search" returned no results. I can't believe I'm the first person to ask this. I find the new forum a little confusing.

I am trying to add Google Analytics to my pages and it says i have to past code before the closing Head tag. Can you please tell me exactly where i would find this? i've looked, but don't want to make a mistake and add it in the wrong place.

Thanks!

Share this post


Link to post
Share on other sites
James B

Hi there,

Go to your wp dash, Pagelines>Header and Footer> they'll be a custom code box for header scripts. Paste in there and save :)


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
welcome

Hi,

Thanks for the response, but I don't see what you mean. On my Wp Dashboard I have things like Right Now, Recent Comments, Incoming Links, etc. nothing that says Header and Footer. I see a Header-Footer in "Site Options" but no custom code box. I'm sorry, but I need explicit instructions :)

Thanks

Share this post


Link to post
Share on other sites
Simon

What theme do you have? This post is in PlatformPro section.

Share this post


Link to post
Share on other sites
welcome

Platform Pro then upgraded to Pagelines

Share this post


Link to post
Share on other sites
Simon

The go to pagelines => site options => custom code => headerscripts area

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


  • Similar Content

    • Queue-it
      By Queue-it+
      Hi,
      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.
       
       
    • navigador
      By navigador+
      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.
       
    • atcdomainsolutions
      By atcdomainsolutions+
      Question:
      When adding Google Analytics to a site, it's best to add it into the Custom Javascript/Header HTML area (below the Custom LESS box) to ensure it is tracked on all pages, correct?
       
      If not, where should I add it?  
    • Ron
      By Ron+
      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.
       
      Any suggestions?
       
      Thanks,
      Ron
    • eveliut
      By eveliut
      Hi there,
       
      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. ;)
×