Criteo Integration

Getting Started

Implementing Criteo OneTag on your homepage allows us to track bouncers (users who land on your homepage but leave your site without making a purchase). Criteo can then display ad-creative featuring best-selling products to these users.

The homepage tag should be implemented within the header code on your homepage.

<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
window.criteo_q = window.criteo_q || [];
var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
window.criteo_q.push(
{ event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },
{ event: "setSiteType", type: deviceType },
);
</script>

Mapping Fundraise Up actions to Criteo

Copy these script snippets into your Google Tag or scripts part of your website header templates.

Checkout Open

See more: https://support.criteo.com/s/article?article=202733182-Criteo-OneTag-on-your-Product-page

<script>
FundraiseUp.on('checkoutOpen', function(details) {
window.criteo_q = window.criteo_q || [];
window.criteo_q.push({
event: "viewItem",
item: details.campaign.name
});
});
</script>

Donation Complete

See more: https://support.criteo.com/s/article?article=202806921-Criteo-OneTag-on-your-Sales-Confirmation-page

<script>
FundraiseUp.on('donationComplete', function(details) {
window.criteo_q = window.criteo_q || [];
window.criteo_q.push({
event: "trackTransaction",
id: details.donation.id,
currency : details.donation.currency,
item: [
{ id: details.donation.recurring? "Monthly Donation" : "One-time Donation",
price: details.donation.amount,
quantity: 1
}]
});
});
</script>