PHP & Google Analytics question...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradaboy
    sell me your banners
    • Dec 2003
    • 12931

    #1

    PHP & Google Analytics question...

    If I use a php redirect to send my traffic to the destination url can I still include google analytics on this redirect.php to track the traffic or will it have no chance of loading since it redirects immediately?
    Media Buyer - Sell me your traffic!
    FREE to register domains...
    Better than 99% of the crap sold here!
  • grumpy
    Too lazy to set a custom title
    • Jan 2002
    • 9870

    #2
    depends where you do the forward and how
    Don't let greediness blur your vision | You gotta let some shit slide
    icq - 441-456-888

    Comment

    • nation-x
      Confirmed User
      • Mar 2004
      • 5370

      #3
      Originally posted by pradaboy
      If I use a php redirect to send my traffic to the destination url can I still include google analytics on this redirect.php to track the traffic or will it have no chance of loading since it redirects immediately?
      Not with a php redirect

      Comment

      • pradaboy
        sell me your banners
        • Dec 2003
        • 12931

        #4
        Originally posted by grumpy
        depends where you do the forward and how
        creative (popup/text link/banner) -> redirect.php -> which redirects to the affiliate url

        basically I just want to be able to track stats on my server for all affiliate advertising I do.
        Media Buyer - Sell me your traffic!
        FREE to register domains...
        Better than 99% of the crap sold here!

        Comment

        • borked
          Totally Borked
          • Feb 2005
          • 6284

          #5
          you will need to use javascript to redirect, not php
          analytics javascript, then the redirect javascript

          <script language="JavaScript"><!--
          window.location="http://nextjump.com";
          //--></script>

          For coding work - hit me up on andy // borkedcoder // com
          (consider figuring out the email as test #1)



          All models are wrong, but some are useful. George E.P. Box. p202

          Comment

          • grumpy
            Too lazy to set a custom title
            • Jan 2002
            • 9870

            #6
            Originally posted by borked
            you will need to use javascript to redirect, not php
            analytics javascript, then the redirect javascript

            <script language="JavaScript"><!--
            window.location="http://nextjump.com";
            //--></script>

            dont forget to set the metatag to for if they have javascript disabled
            Code:
            <META http-equiv="refresh" content="1;URL=yoururl">
            Don't let greediness blur your vision | You gotta let some shit slide
            icq - 441-456-888

            Comment

            • BestXXXPorn
              Confirmed User
              • Jun 2009
              • 2277

              #7
              There's a better way, use event tracking...

              On outbound links (anchor tags) add a onclick="pageTracker._trackEvent('blah', 'blah', 'blah');"

              I don't even bother with a redirect any more, I just track the page it was clicked from, position of the click within the page, and the site it was sent to. Very accurate, very simple, and faster for the user not having to do some redirect BS :P
              ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com

              Comment

              • pradaboy
                sell me your banners
                • Dec 2003
                • 12931

                #8
                Originally posted by BestXXXPorn
                There's a better way, use event tracking...

                On outbound links (anchor tags) add a onclick="pageTracker._trackEvent('blah', 'blah', 'blah');"

                I don't even bother with a redirect any more, I just track the page it was clicked from, position of the click within the page, and the site it was sent to. Very accurate, very simple, and faster for the user not having to do some redirect BS :P
                For this you would have to have control over the page your ad is displayed on, correct?
                Media Buyer - Sell me your traffic!
                FREE to register domains...
                Better than 99% of the crap sold here!

                Comment

                Working...