Forum Moderators: DixonJones

Message Too Old, No Replies

Can You Tag A Javascript Email Link On A Webpage So Google Analytics C

         

peteq

11:35 pm on Apr 7, 2008 (gmt 0)

10+ Year Member



Is this possible?

Is there any way in google analytics that I can tag and track a email link like ie "email me now for a free sample session" on my html based website that I've encoded in javascript?

I'm using the great free hiveware enkoder program [hivelogic.com...] (so the spambots don't pick it up).

So I can see what pages people email me from and more importantly how they got to that page, ie keywords previous pages etc

I encode the email with hiveware where i have the option of putting

1. email address
2. link text
3 mouseover text
4. e mail subject line.

then i paste the resulting javascript code in the source code of the html webpage.

So it shows up as a clickable bit of text that when clicked pops up in the readers email program and puts in whatever subject line i chose and my email address in the to line.

I've tried searching google analytics help and can't find anything.

I am going to have different subject lines on each page so i can track it a bit in my mail program with rules, but that won't allow me to track it in google analytics to see what the previous pages visited were etc which is the main thing I want.

I know about their url builder tool but that's for urls not javascript clickable email links.

RossWal

6:39 pm on May 5, 2008 (gmt 0)

10+ Year Member



One way might be to add a hop. Have the user facing link go to another page (same window or new), and on that page in the onload event run your email script. You would pass the needed parms in to the new intermediate page for use in the JS.

peteq

8:28 am on May 6, 2008 (gmt 0)

10+ Year Member



Hi RossWal,

how would you do something like that if you don't know how to code javascript?