Welcome to TalkGraphics.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2010
    Location
    Vancouver
    Posts
    131

    Default hiding google analytics code from website

    So I've just noticed that the tracking code from google analytics, that I've got in a repeating placeholder, is showing up (text) on my website, in the upper left corner.

    The code is entered in the Analytics tab of the document Web Properties.

    I've tried hiding the placeholder and republishing to no avail. Any suggestions out there?

    Thanks.

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,508

    Default Re: hiding google analytics code from website

    The tracking code should not appear on the page in the browser.

    The tracking code should go in the Website Properties > Website > HTML (head) section and not a placeholder. This will track each page.
    Last edited by gwpriester; 23 August 2013 at 09:39 PM.

  3. #3
    Join Date
    Dec 2010
    Location
    Vancouver
    Posts
    131

    Default Re: hiding google analytics code from website

    Wow, that was quick!

    Thanks so much Gary. That would have eaten up a few days I'm sure

  4. #4
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,508

    Default Re: hiding google analytics code from website

    In the newest versions, (9) there is a specific area for this but in the older versions it was kind of vague (as you have discovered).

  5. #5
    Join Date
    May 2005
    Location
    Princeton Junction, NJ, USA
    Posts
    136

    Default Re: hiding google analytics code from website

    I just exercised that new input field in Web Properties / Analytics for the first time, adding my client's google tracking code. Checking the web page source code after export, it appears that the script is added as the very last item in the header, just before the body begins.

    What's especially convenient about the new feature is that you drop in the analytics code once in the dialog, and the code is added to every page in the site on publication (export). Time saving, and very handy if a code must be removed or changed after the fact on a large site.

  6. #6
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,508

    Default Re: hiding google analytics code from website

    Ack! It should be HTML (head) as Jon states. (I corrected my previous post).

  7. #7
    Join Date
    Dec 2007
    Location
    Sunshine Coast BC, Canada. In a beautiful part of BC's temperate rainforest
    Posts
    9,864

    Default Re: hiding google analytics code from website

    It's handy too if you already have a site done and you need to add tracking. I did a site for a client and at first they weren't sure if they wanted me to set up analytics so the site went live without it and then the client changed his mind all I had to do was pop the code in the Analytics tab and upload.
    [SIGPIC][/SIGPIC]
    My current Xara software: Designer Pro 365 12.6

    Good Morning Sunshine.ca | Good Morning Sunshine Online(a weekly humorous publication created with XDP and exported as a web document) | Angelize Online resource shop | My Video Tutorials | My DropBox |
    Autocorrect: It can be your worst enema.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •