Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 22nd Jul 2011, 01:55 PM   #1
Active Warrior
 
Join Date: 2010
Posts: 67
Thanks: 10
Thanked 2 Times in 2 Posts
Default
Adding Google analytics to an E-commerce site
Share on: 
fb share twitter share gplus share more share

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...!

roadwarriorhawk is offline  
Unread 22nd Jul 2011, 05:39 PM   #2
Active Warrior
War Room Member
 
detector's Avatar
 
Join Date: 2009
Location: Wakefield, UK
Posts: 86
Thanks: 92
Thanked 116 Times in 17 Posts
Default
Re: Adding Google analytics to an E-commerce site
Share on: 
fb share twitter share gplus share more share

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
detector is offline  
Unread 23rd Jul 2011, 09:15 PM   #3
Active Warrior
War Room Member
 
Join Date: 2011
Location: United States
Posts: 46
Thanks: 0
Thanked 2 Times in 2 Posts
Default
Re: Adding Google analytics to an E-commerce site
Share on: 
fb share twitter share gplus share more share

I recommend checking the header to see if it's a global (sitewide) element.
danilolee is offline  
Unread 24th Jul 2011, 01:24 AM   #4
www.MichaelKove.com
War Room Member
 
TrueStory's Avatar
 
Join Date: 2007
Location: Miami Beach, FL
Posts: 142
Thanks: 7
Thanked 18 Times in 16 Posts
Default
Re: Adding Google analytics to an E-commerce site
Share on: 
fb share twitter share gplus share more share

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.
TrueStory is offline  
Closed Thread


Bookmarks

Tags
adding, analytics, ecommerce, google, site


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 10:30 AM.