Adding Google analytics to an E-commerce site

by 3 replies
4
Does anyone know the easiest way to add analytics to every page of an e-commerce site - or any sites with lots of pages for that matter, without doing it one by one, page by page? That would take forever...!
#programming #adding #analytics #ecommerce #google #site
  • it depends if you use a custom e-commerce solution which would make it harder or an off the shelf script that might have a module built in to allow for google analytics

    if you give me some more info ill gladly help you out, dont mind spending half an hour getting it sorted for you?


    det
    • [1] reply
    • I recommend checking the header to see if it's a global (sitewide) element.
  • I know your pain, i have personally picked up several projects where two-page site spiraled into thirty-page site, and if I had to do any changes to the header menu, it had to be done in ALL files.

    Ok, here is solution i have used that worked for me:

    In Dreamweaver there is a wonderful function Find and Replace. I used that, I replaced ALL instances of </head> with <google analytics code></head>

    You can modify your search parameters to include entire folder (not just current open documents).

    Download all your files to your HD and edit them in Dreamweaver.


    IF you do not have dreamweaver, ......

    This just in... Notepad++ has the same feature. (How To “Find And Replace” Words In Multiple Files)

    Hope this help. Oh and since you're doing "search and replace", I HIGHLY recommend creating one global header file and including it ...trust me, you will thank yourself later.

Next Topics on Trending Feed