Following the recent announcement of the new iOS 14 release update, conversion events from tools such as the Facebook pixel will be affected. Here are some solutions on how to setup your Thank You pages if you wish to capture conversion events for Facebook Pixel.
Note: After the iOS 14 update, you will still be able to use GiveEasy Thank You pages and continue using Facebook Pixel to capture events but you won't be able to use conversion events to optimize your ads.
In order to receive and capture conversion events to to optimize your ads, you will be require to host the Thank You page on your own domain and install the Facebook Pixel in that page.
Step 1: Create a new page on your website (see your hosting provider on instructions for how to do this)
-
- You can download our default thank you page template here (open and save the file).
- Change the extension of the file from .txt to .html
- Edit the content if needed
- Rename the file to your preferred thank you page name
- Insert your Facebook Pixel Script in your thank you page
- Follow these instructions here
- If you are using our default thank you page template, place your Facebook Pixel script within the following tags:
<!-- Start Facebook Pixel Code -->
<!-- End Facebook Pixel Code -->
- You can download our default thank you page template here (open and save the file).
Step 2: Redirect the GiveEasy Thank You Page to your own Thank You Page
You will need to know the URL of your Thank You Page, let's pretend it is:
https://www.MyCharityName.org.au/Thank-You.html
- Login to your GiveEasy Dashboard
- Access "Manage Thank You Page"
- Create a New Page: e.g.: "External"
- Click on "Manage Tracking Script"
- Paste the following script:
<script>
const thankYouPage = 'REPLACE ME WITH YOUR EXTERNAL THANK YOU PAGE URL'if(!window.location.href.includes("portal.giveeasy.org"))
{
var urlParams = new URLSearchParams(window.location.search);
var givingRefId = urlParams.get('refid') || '';
var amount = urlParams.get('amount') || '';
var redirect = thankYouPage + '?refid=' + givingRefId + '&amount=' + amount;
window.location.href = redirect;
}
</script> - Replace REPLACE ME WITH YOUR EXTERNAL THANK YOU PAGE URL with your Thank You Page URL
- Make sure to keep the single quote before and after the URL, it should look like:
const thankYouPage = 'https://www.MyCharityName.org.au/Thank-You.html' - Publish to Live
- Make sure to set the Thank You Page of your appeal to that newly created "External" thank you page
Notes:
GiveEasy will redirect donors to your external thank you page with the following URLs parameters:
- amount (the amount donated)
- refid (the giving id reference)
You can then modify your Facebook Pixel to capture this information by added the following code to your Facebook Pixel Script:
<!-- Tracking the Purchase amount -->
var urlParams = new URLSearchParams(window.location.search);
var amount = urlParams.get('amount');
fbq('track', 'Purchase', {currency: "AUD", value: amount});
Comments
0 comments
Please sign in to leave a comment.