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=falseThe values inside the carats are replaced:
000381788

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.