Jump to content

Archived

This topic is now archived and is closed to further replies.

quintinm

Where to insert Google analytics in DMS2

Recommended Posts

quintinm

Hi there.

 

Where do i add the code from google analytics?

Do i do it in the area marked "DMS Header Scripts Fallback"?

I tried that, but it doesn't appear in the source of my site.

 

Please advise, thank you.

 

Quintin

Share this post


Link to post
Share on other sites
jmad

Best way is to add an SEO plugin like Yoast and then add it there.

Share this post


Link to post
Share on other sites
quintinm

I have Yoast SEO (Free) - i cannot see where to add the google analytics code...

Surely that is not correct?

 

Does DMS2 no longer have a place to put the Google Analytics code?

Share this post


Link to post
Share on other sites
kboyle10

You can add it in the Custom Scripts section. That puts it right in the header of the site. My analytics is confirmed and tracking after putting it there.

Share this post


Link to post
Share on other sites
quintinm

kboyle10, i added it there and when i check the source it is displaying.

I did have to empty the cache though - maybe that is what the problem was.

I then checked google analytics but it says it is not installed.

The site is verified, so perhaps i will just check tomorrow and see if it is tracking.

 

Thanks for the help.

Share this post


Link to post
Share on other sites
kboyle10

Yeah check it the next day. Mine too said not tracking at first. But then next day it was running fine.

Share this post


Link to post
Share on other sites
Danny

quintinm - Please do not use a cache plugin (if that was what you were referring to when you said you had to clear your cache), when your site is still underdevelopment, as this can cause all sorts of issues, if you do not know how cache works. The best thing to do is get your sites layout/design finalised and everything else configured before using a cache plugin.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
quintinm

Hi Danny, i think it was just my usual browser cache :-)

I could not see the code in the source.

 

Thanks.

Share this post


Link to post
Share on other sites
Danny

Can you provide screenshot of where you have added this code please, as I have just this moment tested and it is working as intended.

 

You can also use this plugin by Yoast, creator of the WordPress SEO plugin.

 

https://yoast.com/wordpress/plugins/google-analytics/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
quintinm

Danny, it is working now, thanks for the alternative plugin though.

Share this post


Link to post
Share on other sites
Danny

Awesome and no problem, happy to help!


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×