Google Analytics Goal submission after Gravity Form payment - wordpress

For one of my sites I am using a Gravity Form plugin in combination with a Dutch payment gateway to receive new subscriptions. I would like to add a goal to my Google Analytics account with the amount of subscriptions per day. After a successful subscription a hidden "Thank you" page is loaded.
I've already various things:
Using the "Gravity Forms Google Analytics Event Tracking" plug-in, however the plug-in posts to Google Analytics when connecting to the payment gateway. Because of this all payments that are canceled or not accepted are also showing up in Google Analytics.
I have tried to use the Google Analytics goal page. Using this way we monitor if the user loads the successful payment page. However, when the page is refreshed Google Analytics will count it as two payments.
Has someone have an idea how to solve this problem in a reliable way?

Related

Why does Google Analytics attribute all Success Page completions to Stripe Checkout, and how to fix it?

I have a problem with google analytics and stripe checkout where all goal completions are attributed to checkout.stripe.com, instead of the actual referring website.
I am using Google Analytics UA and have the Global site tag on all pages. Then I have a goal to track the success page, which stripe checkout redirects to upon successful completion.
User flow:
Website visitor comes from one of the referral pages.
Then they click on the stripe checkout button, which takes them to a stripe hosted page.
On stripe hosted checkout page, enter payment info.
Upon successful payment, redirected to success.html (which is the goal being tracked in analytics).
So when a user goes to success.html, Google analytics attributes the goal completion to stripe checkout, instead of the website that referred them to my site in the first place.
Has anyone else experienced this? Am I doing something wrong or is this just how Google Analytics works when using Stripe Checkout?
This seems like a GA configuration issue rather than Stripe. I'm not really familiar with GA, but if there's some way you can override the attribution, Stripe Checkout lets you set your success_url dynamically. For example, for each customer sent to Checkout, you could include the original referrer in the success URL they'd ultimately be sent to, in addition to getting the Checkout session ID in case you'd like to retrieve some session data (like metadata):
success_url: "http://example.com/success.html?original_referral=ref_123&session_id={CHECKOUT_SESSION_ID}",
https://stripe.com/docs/payments/checkout/custom-success-page#modify-success-url
not sure if you have solved this yet but you can block certain referral urls. Go to analytics go to admin> set up assistant > tag installation> click on your data stream > more tagging settings > list unwanted referrals> then from there just exclude the url you don't want tracked so in your case it's checkout.stripe.com

Capture successful prestashop order in google analytics

I use Prestashop V1.6.1.11, and PayU payment module. I have configured the Google Analytics module.
Currently the successful order is not captured in analytics.
I think this is because the payment module, on successful payment is redirecting to order-detail page when logged in or guest-tracking page for guest users instead of order-confirmation page.
In the goal url's of Google Analytics I have added /order-detail and /guest-tracking as goals but it doesn't help.
Is there a way to capture order confirmation in this case?
Thanks for your help.
You could add the code manually to send an event to Google Analytics on your /order-detail, /order-detail and /guest-tracking pages and then use that event to trigger your successful order goal.
For example:
ga('send', 'event', 'Order', 'Successful');

Tracking using google analytics when customer redirects from my website to other website and Places an successful order

I have a magento store. There is a button on product Page which gives option to customer to buy the same product from another website.
If the user redirects from my store to other website, and buys product from other website, I want to track this using Google Analytics.
Being new to Google analytics, I don't know what's the best way to implement that functionality. Please help.
You can measure the click on the button to GO to the other website.
To measure if they buy something there you should add an event on the other website that send the ga data to your own UA id..

Measurement protocol for checkout steps

We have implemented transaction tracking using Measurement protocol. Works as a wonder 100% of transactions are tracked.
In the checkout we have option for people to login via Facebook oauth. GA attributes all the transactions to Facebook if people login via Facebook.
I was wondering if it is an option to take out GA code from checkout and create funnel using measurement protocol page views. Which should be very stable and we will solve Facebook oauth issue.
Later on we will implement product impression, product click, promo click tracking using data layers and GTM.
Do you think such approach would work?

Google Analytics Campaign Tracking Issues

A client of mine is having some issues with regards to tracking campaigns in Google Analytics that I was hoping one of you can advise me on.
They have recently sent out an email with the Google Analytics campaign information in the links back to the site from a button in the email (link created with the URL builder).
As well as the Google Analytics information they also send their own parameter for tracking using a bespoke system of theirs. In the end the url that visitors would go to after clicking the button in the email was something along these lines:
http://www.domain.com/pagename/?bespokecampaign=lead_gen/email/email_btn/boxcampaign&utm_source=email_pure&utm_medium=email&utm_term=email_btn&utm_campaign=boxcampaign
Looking at Acquisitions in the Google Analytics report I can see in the past this page has been viewed and has the correct Source/Medium set as email_pure/email.
However, there was a lead gen form that was filled out on the site after landing on this particular page that sends an event action that the form was filled out. When trying to view the campaign information for these events I do not see any information regarding the Source / Medium for that event being the correct information from the URL.
The Salesforce model in place to receive these leads took the referrer URL correctly, containing the Google Analytics parameters, but there was no record in Analytics to suggest one of the form events had the Source/Medium of email_pure/email.
Does anyone have any ideas on what could be causing this and potential fixes?

Resources