This question has one main goal; to bring in Response data from an HTTP POST sent by PayPal into GA.
Validating the IPN has not been the issue; all PayPal data is successfully received. The Issue lies in trying to send the data to GA; there is something not communicating and no data is sent.
I believe it is a scope issue with the ga
javascript object somehow not firing correctly.
Currently I have a <script = 'text/javascript'>
tag that exists in the source code of a Content (Page)
This code listens for and validates the IPN POST as response
.
if (response == 'VERIFIED') {...
I store what should be the price in var x = e.parameter.mc_gross
Then after everything is matched I run,
ga(function () {
ga('set', 'metric3', x);
});
I have combed through this documentation and it is miserable trying to find a solution. I am now trying to open the website file in VS to see if I can create a custom module to solve this issue but even finding where to download the site or how to upload a module is increasingly frustrating.
Thank you for your help, I really appreciate anyone taking time to answer, especially now.