Mida.so Integration with Snitcher

Created by Aaron Liew, Modified on Mon, 15 Sep at 2:14 PM by Aaron Liew

You can record Snitcher identification data in Mida using the mida.identify() method of Mida's client-side API. This enhances user identification and context throughout your website.

Implement Snitcher Spotter API

Read the full documentation on Snitcher's Spotter API: https://docs.snitcher.com/spotter/installation#generate-a-spotter-api-token

The Mida script must also be present on the same page.


Important Note on Snitcher and Mida Integration

While the Snitcher spotter can identify and tag visitors, Mida cannot instantly modify page content during the current visit.

It's possible to use JavaScript to load a Mida variant after Spotter has identified a company. This method is the most accurate but requires additional coding effort.

In most cases, personalized content based on Snitcher data will be available on subsequent website visits.


Update Your Snitcher Callback Function

<script>
  function myCallback(identification) {
    // Ignore identifications of type 'isp'
    if (identification && identification.type !== "isp") {
      // The company was successfully identified!
      const company = identification.company;

      // Sync data into Mida
      mida.identify({
        snitcher_company_name: company.name,
        snitcher_company_domain: company.domain,
        snitcher_company_industry: company.industry,
        snitcher_company_employee_range: company.employee_range
      });
    }
  }

  // Snitcher API settings
  window.SpotterSettings = {
    token: "YOUR-API-TOKEN",
    callback: myCallback,
  };
</script>


About Mida User Identification

Identifying users allows you to personalize your content with dynamic keywords and target filtering based on the provided company information.

To add custom user data, use the mida.identify() method, where you can include properties like id, name, email, or any other relevant attributes for your business needs.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article