New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
GAMB-LINX.com - Gambling Backlinks
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jan 2009
    Location
    Northern Europe
    Posts
    882
    Blog Entries
    6
    Feedback Score
    3 (100%)

    Default Google Analytics: Manually trigger a goal

    I basically have 2 pages different pages that need to be tracked as the same goal, so I'm looking for a way to get manually trigger the goal whenever the page is loaded.

    I'm not sure if this can be done with Google Analytics, since I haven't been able to find any references to it
    My blog www.unknownwebmaster.com | New posts on Poker affiliate blogs | Webmaster tools I use every day.

  2. #2
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    May 2009
    Location
    United States
    Posts
    225
    Feedback Score
    4 (100%)

    Default

    Certainly. It's a common practice for many ecommerce platforms where the URL is the same for all pages in the checkout process. So they need a way to track each page individually.

    Use an onload in the body tag to call pageTracker:

    PHP Code:
    <body onload="pageTracker._setVar('goalnamehere');"

  3. #3
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jan 2009
    Location
    Northern Europe
    Posts
    882
    Blog Entries
    6
    Feedback Score
    3 (100%)

    Default

    Isn't setVar() for segmentation?
    My blog www.unknownwebmaster.com | New posts on Poker affiliate blogs | Webmaster tools I use every day.

  4. #4
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    May 2009
    Location
    United States
    Posts
    225
    Feedback Score
    4 (100%)

    Default

    To be honest I don't know the answer to that or to say that it is exclusively for segmentation. Hopefully someone else will jump in with an answer.

    I use "pageTracker._setVar" heavily for tracking outbound links where there is nothing else to trigger, ie: no trackable landing page. Seems like this would be a similar use for it because OP needs to track two individual pages as one in a way.

    Another way (probably a better way) to possibly track these two pages as one would be to use a regular expression goal and write the regex to track:

    /(page1|page2).html

    Which should trigger the goal when either page1.html or page2.html is accessed. I haven't tested this but looks like it should work.

    Do we have any GA guru's that can chime in?

  5. #5
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jan 2009
    Location
    Northern Europe
    Posts
    882
    Blog Entries
    6
    Feedback Score
    3 (100%)

    Default

    Maybe I could have each of the "goal pages" create a virtual pageview by using pageTracker._trackPageview() and then set that page up as a goal.

    I think it will work in almost the same way as with the regular expression you suggested, but be easier for me extend to include more pages in the goal, since I won't have to go back and edit it.

    -----

    The reason I'm a bit skeptical about using pageTracker._setVar() is that I have read that it uses a cookie that can only store 1 value.

    So if I assign 2 or more labels to a visitor fx. setVar('clicked-full-tilt-referral-link') and setVar('clicked-pokerstars-referral-link') only the first of them will be used in the current session, and the last one set will be used in any future session.
    My blog www.unknownwebmaster.com | New posts on Poker affiliate blogs | Webmaster tools I use every day.

  6. #6
    Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    42
    Feedback Score
    1 (100%)

    Default

    @cprpoker: I think that using regexp is indeed the way to go here. The code you suggested seems valid to me.
    @autobeestan: We're not interested in russian car upgrades

  7. #7
    Senior Member
    Rebmem Roines
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    US
    Posts
    959
    Feedback Score
    23 (100%)

    Default

    use the regex, that's what i do, it tracks perfectly. no need to use the page tracker function, it will just goof up your stats a bit.


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. "Goal" Information in Analytics
    By TheShortStack in forum Poker SEO Forum
    Replies: 5
    Last Post: 01-14-2010, 08:42 AM
  2. No more Google analytics for me :)
    By Nexton in forum Poker SEO Forum
    Replies: 4
    Last Post: 10-04-2009, 08:17 PM
  3. Google Analytics is king?
    By Guerreiro in forum Poker SEO Forum
    Replies: 20
    Last Post: 09-03-2009, 05:34 AM
  4. Google Analytics Help
    By Tea Flow in forum Poker SEO Forum
    Replies: 4
    Last Post: 07-24-2009, 12:00 PM
  5. need google analytics help
    By scrawnybob in forum Poker SEO Forum
    Replies: 2
    Last Post: 04-18-2009, 05:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant