Framework Guides

Salesforce Marketing Cloud

Install the Ours Privacy Web SDK on Salesforce Marketing Cloud CloudPages so landing pages and preference centers report page views and custom events.

Use this page to install the Ours Privacy Web SDK on Salesforce Marketing Cloud landing pages built with CloudPages.

CloudPages give you direct control over the page HTML, so this install needs no platform configuration beyond editing the page content itself.

Note: This page covers installing tracking on Marketing Cloud pages. To send events from Ours Privacy into Salesforce, see the Salesforce destination.


Steps to Integrate Ours Privacy with Marketing Cloud

1. Copy your install snippet

Copy your install snippet from the Install Ours page.

2. Add the snippet to your CloudPage

  1. In Marketing Cloud, go to Web Studio > CloudPages and open your collection.
  2. Open the landing page you want to track, then edit its content.
  3. Switch the content block to HTML editing.
  4. Paste your snippet inside the <head> section, before the closing </head> tag.
  5. Save and publish the page.

If several CloudPages share a template, add the snippet to the template so new pages inherit it rather than adding it page by page.

3. Verify

  1. Open the published CloudPage URL, not the preview.
  2. Open the browser console to check for script errors.
  3. In your Ours Privacy account, check Recent Events to confirm page views are arriving.

Tracking Preference Centers

Preference centers and unsubscribe pages are also CloudPages, so the same install applies. Consider carefully whether you want analytics on these pages: they are often reached from an email link that identifies the subscriber, and in HIPAA-regulated contexts that context can be sensitive. Review what you collect there with your compliance team, and use Global Data Governance to control which properties are forwarded to destinations.


Track Custom Events

Call ours('track', ...) from a script in your page content:

ours('track', 'Preferences Updated', { source: 'email_footer' });

Next Steps

If you need further assistance, contact us at support@oursprivacy.com.

How is this guide?

On this page