Tracking outbound links with Google analytics

Hi Everyone, I have a client who would like to be able to track outbound links (or at least one in particular) from his site. Does anyone know if you can do that with FW (I’m using 542 Pro)

I searched GA support pages and came up with this but I’m not sure if it can be incorporated into freeway links and if so how?

"Google Analytics provides an easy way to track clicks on links that lead away from your site. Because these links do not lead to a page on your site containing the UTM JavaScript, you will need to tag the link itself. This piece of JavaScript assigns a page view to any click on a link - the page view is attributed to the filename you specify.

For example, to log every click on a particular link to www.example.co.uk as a page view for “/outgoing/example_co.uk” you would add the following attribute to the link’s tag:

<a href="http://www.example.co.uk" onClick="javascript: pageTracker._trackPageview ('/outgoing/example.co.uk');">

It is a good idea to log all your outbound links into a logical directory structure as shown in the example. You will thus be able to easily identify the pages visitors clicked on to leave your site.

To verify that _trackPageview is being called correctly, you can check your Top Content report 24-48 hours after the updated tracking code has been executed. You should be able to see the assigned page name in your report."

Many thanks

Mark


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Mark,

You can add these attributes to links on your page manually. Select the link, open the hyperlink dialog (Command-k) and click the Extended button. In here click New to create a new attribute and type onclick in the Name field, and

javascript: pageTracker._trackPageview ('/outgoing/example.co.uk'

in the Value field.

Hope this helps.

Joe

On 9 Dec 2009, at 09:40, MarkSmith wrote:

Hi Everyone, I have a client who would like to be able to track outbound links (or at least one in particular) from his site. Does anyone know if you can do that with FW (I’m using 542 Pro)

I searched GA support pages and came up with this but I’m not sure if it can be incorporated into freeway links and if so how?

"Google Analytics provides an easy way to track clicks on links that lead away from your site. Because these links do not lead to a page on your site containing the UTM JavaScript, you will need to tag the link itself. This piece of JavaScript assigns a page view to any click on a link - the page view is attributed to the filename you specify.

For example, to log every click on a particular link to www.example.co.uk as a page view for “/outgoing/example_co.uk” you would add the following attribute to the link’s tag:

It is a good idea to log all your outbound links into a logical directory structure as shown in the example. You will thus be able to easily identify the pages visitors clicked on to leave your site.

To verify that _trackPageview is being called correctly, you can check your Top Content report 24-48 hours after the updated tracking code has been executed. You should be able to see the assigned page name in your report."

Many thanks

Mark


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Joe, should that js code have a closed bracket at the end?

Cheers

Mark

On 9 Dec 2009, 12:20 pm, Joe Billings wrote:

Hi Mark,

You can add these attributes to links on your page manually. Select the link, open the hyperlink dialog (Command-k) and click the Extended button. In here click New to create a new attribute and type onclick in the Name field, and

javascript: pageTracker._trackPageview (’/outgoing/example.co.uk’

in the Value field.

Hope this helps.

Joe

On 9 Dec 2009, at 09:40, MarkSmith wrote:

Hi Everyone, I have a client who would like to be able to track outbound links (or at least one in particular) from his site. Does anyone know if you can do that with FW (I’m using 542 Pro)

I searched GA support pages and came up with this but I’m not sure if it can be incorporated into freeway links and if so how?

"Google Analytics provides an easy way to track clicks on links that lead away from your site. Because these links do not lead to a page on your site containing the UTM JavaScript, you will need to tag the link itself. This piece of JavaScript assigns a page view to any click on a link - the page view is attributed to the filename you specify.

For example, to log every click on a particular link to www.example.co.uk as a page view for “/outgoing/example_co.uk” you would add the following attribute to the link’s


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Mark,
Yes it should (and optionally the semi-colon);

javascript: pageTracker._trackPageview ('/outgoing/example.co.uk');

Regards,
Tim.

On 9 Dec 2009, at 13:54, MarkSmith wrote:

should that js code have a closed bracket at the end?

FreewayActions.com - Freeware and shareware actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry yeah, my fault.

On 9 Dec 2009, at 14:41, Tim Plumb wrote:

Hi Mark,
Yes it should (and optionally the semi-colon);

javascript: pageTracker._trackPageview ('/outgoing/example.co.uk');

Regards,
Tim.

On 9 Dec 2009, at 13:54, MarkSmith wrote:

should that js code have a closed bracket at the end?

FreewayActions.com - Freeware and shareware actions for Freeway Express & Pro.

Protect your mailto links from being harvested by spambots with Anti Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options