Knowledge Base      


Can I pass an email and other visitor info to ClickMagick in my postback URL?


Yes, you can pass in an email and other visitor information to your ClickMagick Postback URL from any affiliate network that allows it.

The email will be permanently tied to the appropriate visitor, and you’ll then see it in the Visitor Profile and it will be sent to Facebook via Audience Optimization for example to get higher event match quality scores.


How to do it ...

You can either pass in an SHA256 encrypted email addresses or a regular email address.

All you need to do is add &email={EMAIL_TOKEN} to your postback URL when passing back a regular (non encrypted) email address. If your network passes an encrypted email address, you can add &email_hash={EMAIL_TOKEN} instead.

{EMAIL_TOKEN} will need to be replaced with whatever token the affiliate network uses to pass back customer email addresses. You can get in touch with your account manager to see if they offer this and what token they use.


An example ...

Let’s take a look at an example when using BuyGoods as your affiliate network. They use {EMAILHASH} as their encrypted email token, so your postback URL would be:

https://www.clkmg.com/api/s/post/?uid=[USERID]&s1={SUBID}&amt={COMMISSION_AMOUNT}&email_hash={EMAILHASH}


Important note ...

If you have multiple Campaigns Projects, and there’s a chance that visitors may engage with multiple Projects, you should also pass us an optional Project name to ensure the email is associated with the visitor profile for that Project.

To do this, simply append &cmc_project=Your+Project+Name to the end of the URL shown above. Technically, the Project value must be URL-encoded, but in most cases you can simply replace any spaces with a plus sign as shown above.
 

Visitor Profile Information (PII)

You can also pass the visitor’s first name, last name, phone, and mobile phone in your postback URLs. Simply add the cmc_firstname, cmc_lastname, cmc_phone, or cmc_mobile parameters to your URL and set them to the appropriate tokens for your affiliate network.

Article 863 Last updated: 03/06/2024 4:04:57 AM
https://www.clickmagick.com/kb/?article=863