6 replies [Last post]
cosmo83@drupal.org's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik
Joined: 08/08/2007
Juice: 236
Was this information Helpful?

Any ideas .

Iam trying to track the sale, (Hope this will be requred by other ppl too.. to plan their marketing)

I can use hook_exit (drupals) to get the $_SESSION['referrer'] and place it when the order is complete. Will this suffice ?, Is that the only thing i should be worrying about.

Regards
cosmo83

jimi089's picture
Offline
Uber Donor
Joined: 09/07/2007
Juice: 219
Re: Tracking the sale by referrer

I believe this is something that Google Analytics would be suited for - the question would be integration.

cosmo83@drupal.org's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik
Joined: 08/08/2007
Juice: 236
I see what you r saying..

I just checked in the google analytics code uc_googleanalytics.. and it makes sense..

i havent checked this previously.. I shd try this and see how it works.. Thanks anyway..

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: I see what you r saying..

Hey, good call jimi. We've been using Ny Media's uc_googleanalytics module (included w/ the core distribution) for a while on the Livetest. I just checked it today and could see my revenue sources broken down by source. I've attached a screenshot for you to check out.

(This still might be good to develop specifically for Ubercart in the future, simply because people might want to automate tasks w/ affiliates, in bound links, rewards, etc. The way to do it would probably be like you mentioned - on pageload, check for an inbound referrer link and store it in the user's session. Then at checkout look to see if someone came from an external source and log it if it's one of your affiliates.)

AttachmentSize
uc_ga_screen.jpg 138.12 KB
Andy's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 1076
Tracking Sales by referrer

True, you can do this with Google analytics, but it would also be nice to have this feature in Ubercart. Analytics doesn't always list referrers the way I would like, and this would be a useful feature for an affiliate program where affiliates receive a commission on sales generated from their site. Also I think Google analytics only tracks per session, so if a users is referred from site A, doesn't buy anything on their first visit, and comes back several days later to make a purchase, that sale is not linked to site A. Ubercart could keep a longer term table of users and the site they were initially referred from which would handle this situation. Most customers to our restaurant equipment site do not purchase on their first visit, so this would be useful for us.
Peace,
Andy

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Tracking Sales by referrer

An Ubercart Affiliates module is something I could use also. We already have a handful of affiliates with our current system, but something that ties into a cookie and UC would be awesome.

As Andy mentioned, not every customer orders something on their first order. That is also true with us. I suppose this isn't a necessary feature but would be good to turn on or turn off - whether it's a condition of "your session must have started with this referrer link" or "your uid is now associated with this referrer" - either way would be great to have. (Even better to get both out of the same module!)

If anyone plans on completing such a module, otherwise I could start scratching together one myself.

--
Help directly fund development: Donate via PayPal!

muru's picture
Offline
Joined: 10/04/2010
Juice: 7
Hi All

I am new to drupal and new to ubercart too. In my project i need to track sales by category or customer. I have enabled the module Google Analytics 6 and also enable Google analystics 6.2 in ubercart - extra. I dont know the procedure to work google analystics.

Please anyone guide me..,

Thanks,
Muru