Afterpay Developer Docs

Using Google Analytics

How can I use Google Analytics with Afterpay?

Why Is Google Analytics incorrectly attributing the referrer to Afterpay?

When customers pay with Afterpay, they are redirected to portal.afterpay.com pages during the checkout flow, before returning to your review or confirmation page. This results in Google Analytics seeing portal.afterpay.com as the last domain visited. Therefore, it attributes the referral to portal.afterpay.com.

The Solution - Referral Exclusion List

Add portal.afterpay.com to your referral exclusion list to ensure google correctly identified the real referral source for traffic coming to your site.

For details on how to add Afterpay to your exclusion list click here

🚧

Don't Exclude Afterpay Shop Traffic

Use portal.afterpay.com NOT afterpay.com or you will hide all of the traffic originating from the Afterpay Shop Directory

Updated about a year ago


Using Google Analytics


How can I use Google Analytics with Afterpay?

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.