Analytics
2.5K members online now
2.5K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Track converions on external site / Pass Session to external site

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I've been researching on this topic for hours but still don't know how to do this:

Our website offers links to partner sites. Purchases only happen at these partner sites. The partners would like to notify us, when a user bought something, so we are able to map the purchase information with the users usage on our site.

 

So basically the question is: How do you add events to sessions, when you can't do it on your own site? Our partners do not necessarily work with Google Analytics, so I was thinking of something like passing a session ID to them, so they can return that ID in combination with purchase data and we are able to add the purchase event to the session. But how do you actually do something like this?

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by Dave_Davis (Top Contributor)
December 2015

Re: Track converions on external site / Pass Session to external site

Top Contributor
# 3
Top Contributor
Hi Stefan,

You can extract the client id from the _ga cookie and pass it with your links to the partner sites as a query parameter. The partner site would associate the purchase with the client id. Then you can pass the transaction details to Google Analytics using the measurement protocol.

https://developers.google.com/analytics/devguides/collection/protocol/v1/reference

If you have user authentication on your site you can take advantage of the user ID feature. It would work the same way as described above.

https://support.google.com/analytics/answer/3123662?hl=en

Hope this helps.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

View solution in original post

Re: Track converions on external site / Pass Session to external site

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭

I am not sure if it is actually possible.

 

http://stackoverflow.com/questions/26915432/how-to-reliably-get-session-id-generated-by-google-analy...

 

It would be easier to add the basic GA snippet on the partner sites.

Marked as Best Answer.
Solution
Accepted by Dave_Davis (Top Contributor)
December 2015

Re: Track converions on external site / Pass Session to external site

Top Contributor
# 3
Top Contributor
Hi Stefan,

You can extract the client id from the _ga cookie and pass it with your links to the partner sites as a query parameter. The partner site would associate the purchase with the client id. Then you can pass the transaction details to Google Analytics using the measurement protocol.

https://developers.google.com/analytics/devguides/collection/protocol/v1/reference

If you have user authentication on your site you can take advantage of the user ID feature. It would work the same way as described above.

https://support.google.com/analytics/answer/3123662?hl=en

Hope this helps.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital