Loading

Integrate External Opt-In Management with Account Engagement Tracking

Publiceringsdatum: Sep 30, 2025
Beskrivning
NOTE: This article is given for your reference. Account Engagement doesn’t provide any further support for configuring external opt-in management with Account Engagement.

Account Engagement supports opt-in management natively, however some customers wish to instead use an external opt-in solution they already work with on their website.
Lösning

NOTE: This process has been deprecated and we recommend using the Tracking and Consent API instead, as it features more robust and complex options. More on this can be found in our documentation:

https://developer.salesforce.com/docs/marketing/pardot/guide/tracking-and-consent-overview.html



You can control Account Engagement opt-in behavior by manipulating a cookie on the vanity domain. The cookie that controls Account Engagement opt-in includes the Account Engagement account ID. To find your Account Engagement account ID, have an Administrator user login and go to the 'Settings' page. 

The cookie Account Engagement uses to control opt-in is named pi_opt_in<accountId> so if the account ID is 12345, the cookie would be named pi_opt_in12345. To opt out of Account Engagement tracking, the value of this cookie must be set to “false” (without quotes). To opt back in to tracking, it must be set “true”. The preference can be set only one time and cannot be changed until cookies are cleared. This behavior is described in the Control Tracking Opt-In Preferences documentation. The cookie must be set on the primary tracker domain for the account.

You can also choose to have Account Engagement manage the cookie. To tell Account Engagement to opt the current browser out of tracking, you can send a GET request to a URL constructed as shown in the following example. You can either construct this URL manually or base it on the analytics request sent by our tracking code.

https://<tracker_domain>/analytics?ver=3&campaign_id=<campaign_id + 1000>&account_id=<account_id + 1000>&url=<url_of_the page>&pi_opt_in=false
The values inside the carats are replaced:
  • tracker_domain is your unique tracker domain
  • campaign_id + 1000 is a numerical value of the campaign ID for your tracking + 1000
    • ex. if campaign_id=2790, the value you insert would be 3790
  • account_id + 1000 is a numerical value of the account ID + 1000
    • ex. account_id=12345, the value you insert would be 13345
To disable Account Engagement tracking by default, you must enable the built-in opt-out management as described in the documentation. The default opt-in messaging can be hidden using styles.
Knowledge-artikelnummer

000381788

 
Laddar
Salesforce Help | Article