Jump to:

10990 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » I need Help (for dummies) to include the Google Analytics code

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 759 Views
  • Ester_23
    Avatar
    Community Member
    2 Posts

    I need Help (for dummies) to include the Google Analytics code Link to this post

    Hello there,

    I have been fighting to put the code of google analytics in my site, but I can't manage to succeed. I am not a programmer or developer, so all the answers I find on google doens't help me (they are all about php and thing like that I don't know...)
    I have access to the admin page of the site and can add pages, content, documents... Why I can't add the code there?
    The silverstripe is version 2.3.7.

    Any help for dummies like me?

    Thank you,

    Ester

  • helenclarko
    Avatar
    Community Member
    25 Posts

    Re: I need Help (for dummies) to include the Google Analytics code Link to this post

    Hi Ester,

    Silverstripes CMS will strip out most of the Google analytics code when you try and enter it into the HTML field.

    You will need to have FTP access to the sites files in order to either install the Google Analytics module or add the Google Analytics code into the header of your site.

    Google Analytics Module:
    http://www.silverstripe.org/google-analytics-module/

    Regards,
    -helenclarko

  • Ester_23
    Avatar
    Community Member
    2 Posts

    Re: I need Help (for dummies) to include the Google Analytics code Link to this post

    Hi Helen,

    Thanks for the reply.

    I really meant the "dummy" up there...
    I don't know what FTP means... And I 've downloaded the module but I don't know how to install it...any help?

    Ester

  • helenclarko
    Avatar
    Community Member
    25 Posts

    Re: I need Help (for dummies) to include the Google Analytics code Link to this post

    Hi Ester,

    To install the module, you will need to drop the folder inside the zipped file into the silverstripe directory on your web server (where all your silverstripe files are hosted).

    are you with a hosting company? some hosting companies have a web portal you can log in to (cpanel for instance), from there you can get access to the files on the web server and upload your own.

    Personally to make things easier, I would use an ftp client. Smartftp is a fantastic ftp client, but feel free to use whatever you like.

    once the googleanalytics folder has been uploaded to the root of your silverstripe directory on the web server you will need to rebuild your database.
    To do this you just need to use {website}/dev/build?flush=1 (where "{website}" is your web address).

    All of the above assumes you know the login details for your web server.

    Thanks,
    -helenclarko

    P.S. I dont believe the GoogleAnalytics module works with SilverStripe 3.0+ as of this time, you may need to set it up manually.

    759 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.