Modify payload to Vipps to precisely track transactions in GA4 and ad networks
-
I’m working as a consultant in a performance marketing agency and together with the client we are working on a solution to more precisely track where transactions done with Vipps are coming from. To illustrate the issue, let’s picture a scenario where a user is navigating through the Facebook feed on an iPhone. While browsing, the user sees an ad and decides to click it. The user is then redirected to the advertisers’s website that opens in an in-app browser within the Facebook application, thereby launching a session in Google Analytics 4. The user then decides to buy something with Vipps. As the user clicks “Pay with Vipps”, the Vipps application opens up on the iPhone. The user then completes the transaction and is sent to the websites thank you page which is opened in the Safari browser, thereby launching a new session.?
In this case the transaction/conversion will be attributed to direct traffic in GA4 as the connection to the original session is lost when the user moves from the in-app browser to Vipps.?Ideally, the conversion should have been attributed to the ad the user clicked on Facebook.
In order to attribute the transaction / conversion to the correct session and source, we need to include some GA4 parameters that identifies the user in the GET request payload from api.vipps. These are session_id (used to identify the session in GA4), client_id (used to identify the user in GA4) and a timestamp indicating when the event happened. These parameters must then be processed in Vipps until the payment is completed and then sent to GA4 in a Post request through GA4s API connection named Measurement Protocol.
We have successfully implemented this solution for another service offered by the client where payments can be done with Vipps. However, this service does not use the Vipps WooCommerce plugin.
The flexibility in terms of modifying the payload that goes to Vipps is according to the developers limited with the the WooCommerce plugin.
Any response / potential solution would be much appreciated.?
/Hans
- The topic ‘Modify payload to Vipps to precisely track transactions in GA4 and ad networks’ is closed to new replies.