Facebook iOS 14 changes with ActBlue

Facebook iOS 14 changes with ActBlue


With the recent privacy changes with iOS 14 and Facebook we have a solution to track your conversion events with Facebook using our Forms.

Now edit the Thank You Page with your custom message and add a HTML Block with the Javascript code below. Make sure you have already added your Facebook Pixel ID in your setting.

Copy paste the code below in. The /100 is from ActBlue as they pass the value over as total Cents not as a dollar amount, so $21.21 would be 2121 as the amount.

function() {
const actblueParams = new URLSearchParams(window.location.search);
fbq("track", "Purchase", { currency: "USD", value: actblueParams.get("amount")/100 });

For the Javascript developers, we poly-fill the URLSearchParams for Internet Explorer users which makes the code a lot easier to read than parsing out the location.search parameter by hand.

Now redirect your http://act.campaigndeputy.com/thankyou/{formname}?amount={{amount}}&refcode={{refcode}}&name={{name}}

What about custom domains?

Glad you asked, talk to your account manager to get the DNS entries needed. Depending on your account there may be a small up-charge. Someone from your team will need to apply the DNS entries. If you are using SquareSpace, Wix, Weebly or Campaign Partner the DNS change likely will need to be made in those systems. If not, ask who registered the domain at a place like Name.com (preffered), Google Domains, Godaddy, 1&1 or Gandi.

Recent Posts

Follow Us

Sign up for our Newsletter