Skip navigation
Currently Being Moderated

Where do I paste my tracking code from google analytics?

Apr 10, 2012 3:38 PM

Where do I paste my tracking code from google analytics?

Do I paste it onto the template page ony? if so where?

Many thanks

 
Replies
  • mario_gudelj
    1,677 posts
    Oct 13, 2010
    Currently Being Moderated
    Apr 10, 2012 4:41 PM   in reply to ExecGR123

    If you're using BC templates you can add the GA script to your templates, right before the closing </body> tag. Otherwise, if you're purely using Muse you need to add it to your Master Page as a raw HTML widget and then every page created from an instance of that master page will have that code in it, which is what you want. The code should be placed as close as possible to the bottom of the page.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 16, 2012 11:08 AM   in reply to ExecGR123

    You can paste the Google analytics javascript code into the metadata of the Page Properties dialog for each page you want to track.

     

    1. Right click or Ctrl-Click on the page in Plan or Design View

    2. Select Metadata in the Page Properties dialog

    3. Paste the javascript code from Google Analytics into the HTML for <head> field

     

    pageprop.jpg

     

    The javascript codes will appear in the HTML once you publish or export.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 16, 2012 11:43 AM   in reply to dslatton

    Which beta version has the "HTML for HEAD" field in the Page Properties? Would it be possible to include the GA tracking code in the Description field in the earlier versions? Or will that interfere with an actual description? I did note that entering the code into the description field will insert it into the Head section.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 16, 2012 3:36 PM   in reply to ReverseLogicLimited

    Sorry, this HTML for <head> is in the next release, so the feature isn't available yet. Do not paste the codes into the Description field, that will turn the javascript into metadata, and it will not execute.

     

    You can copy the tracking codes into the Insert HTML dialog on the master page or the individual pages. This will put a <script> block into the <body> tag, but it should execute correctly.

     

    1. Go to Object>Insert HTML...

    2. Paste the Google Analytics javascript tracking codes

    3. the resulting page item won't "draw" in the exported HTML but the javascript will export and run.

     

    htmlcode.jpg

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 4:26 AM   in reply to ExecGR123

    My SEO team sets up meta in BC templates.  However, when we push a update from Muse, We have to go back in to BC and re-set/update the templates again.  Why is Muse changing page templates in BC?

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 6:15 AM   in reply to dslatton

    HTML for <head> is in the next release

    oh, do you know when and if this release is gonna be public ?

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 7:22 AM   in reply to dslatton

    Adobe should create a few Google adsense tutorials for DreamWeaver and Muse. Having said that do you need the Google analytics HTML in order for the adsense ads to start making money? I want to start using Google adsense ASAP but I don't really know how.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 14, 2012 6:56 AM   in reply to dslatton

    Hi dslatton,

     

    Im using muse 2.0 , where do I place the html code for google analytics tracking without ruining any alignment in the main body? I dont have a metadata tab on the page properties, (i think i did on an earlier version but its gone now). Anyway, do i place the html tag at the bottom? I was advised before to place it at the top but have found that this has been knocking off all my boarders.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 15, 2012 1:22 PM   in reply to Tom Hatton

    Hi,

     

    Make sure you are not checking the page properties for a master page as they don't have metadata tab.

     

    Also, check this article for more information,

     

    Strategies for Muse site search engine optimization

    - http://www.adobekb.com/strategies_for_seo.html

     

    Regards,

    Abhishek Maurya

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 27, 2013 9:31 AM   in reply to dslatton

    i assume the code is the code at https://developers.google.com/analytics/devguides/collection/gajs/gaTr ackingOverview  ?

     

    i'm not sure why, i would think that pasting this in to metadata on page properties of master pages would be easiest.   on master pages i don't get the layout/metadata choice in the page properties dialog box.   i do if i look at page properties in an individual non-master page.   i must be missing something.   seems like you wouldn't necessarily have to go to each page to place the code in that page's metadata?

     

    this may be an old thread... i'm currently running muse v3.2 build 2

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 25, 2013 4:09 AM   in reply to Tom Hatton

    Ton Hatton, I just came accross the same problem and can't seem to find a way to fix it. When I place the html code for google analytics in the HTML for <head> in page properties, page layout... my alignment on all my pages are ruined. Some text on page moves in the middle of nowehere on the pages. How to fix this ?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 25, 2013 4:20 AM   in reply to natdzign

    That is very strange, since anything placed in the <head>, with no css style values, should have no impact on your layout. Do you have your website url for us to check ?

     
    |
    Mark as:
  • mario_gudelj
    1,677 posts
    Oct 13, 2010
    Currently Being Moderated
    Mar 25, 2013 12:43 PM   in reply to Franck Payen

    Place it inside site temlate just befor closing body tag.

     
    |
    Mark as:
  • Currently Being Moderated
    May 2, 2013 12:33 PM   in reply to dslatton

    I am rebuilding a site in Muse.  The first site was done in Dreamweaver, which I am completely clueless in.  I have completed the entire site and now I am trying to enter meta data.  Can I just copy over whats there from the old Dreamweaver pages?

     

    For example: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    I have no clue what this means.

     

    Right now the site is shows up as #1 in google when searching our business field, and we dont want to loose the ranking.  How important is the meta data in reference to this?

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2013 3:49 PM   in reply to z_wilkiins

    Above, Mario refers to adding a "raw HTML widget" to the master page . . . but I'm not finding that widget listed.

    Where is this? Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2013 4:59 PM   in reply to Mel Ristau

    Answering my own question: Its listed under Object > Insert HTML...

    but not in the Widgets Library Panel. (??)

     

    After successfully pasting the HTML for a Twitter Follow button several of my navigation buttons scrambled around into new, unwanted positions.

     
    |
    Mark as:
  • Currently Being Moderated
    May 11, 2013 12:09 PM   in reply to Mel Ristau

    Hello.

    Those buttons from twitter, google, facebook are also called "widgets", sorry for the (common) misunderstanding.

     

    But, those widgets (who come in various flavours) can be raw HTML which are inside tags (<something></something>) are to be copied, as you found in Object menu > Instert HTML

     

    Now, for the scrambling around, we'd need to see your layout as one button shouldn't interfere with the others… Did you insert many different html objects ? What is the code inside each ? Put here a URL we can have a look at, and/or a link to the muse (zipped) file.

     
    |
    Mark as:
  • Currently Being Moderated
    May 13, 2013 1:25 PM   in reply to Franck Payen
     
    |
    Mark as:
  • Currently Being Moderated
    May 13, 2013 1:48 PM   in reply to Mel Ristau

    This is what i get from the browser :

     

    Capture d’écran 2013-05-13 à 22.47.21.png

     

    Which is what i have in muse :

     

    Capture d’écran 2013-05-13 à 22.45.20.png

    I see the side nav scrambled, but it's already the case in the file…

     

    Do you see/expect something different ?

     
    |
    Mark as:
  • Currently Being Moderated
    May 13, 2013 2:09 PM   in reply to Franck Payen

    Should have checked the Twitter Follow button in browser I guess. Still, it doesn't present accurately in Muse. The nav scramble happened upon insert of HTML of Twitter's button code.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (3)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points