Passing Custom Data Along to 40Nuggets (technical)

Your business may already have valuable information about your website visitors, subscribers, donors, or customers. In order to leverage this information and engage with your website visitors intelligently, you may pass along data to 40Nuggets so we can better target your audience.

For example - if a website visitor is already a subscriber to your newsletter, you wouldn't want to show them a newsletter Nugget. If a website visitor is already a customer, or already used a specific promo code, or a visitor has not made a donation - there are a million ways to target and engage with your audience; we're here to make sure each engagement is meaningful and goal oriented.

To pass data along to 40Nuggets you will need to tweak your code snippet by adding the JS object "_40nm_properties" (see example below).

The object has key-value structure and can be used in the dashboard to target Nuggets.

<!-- 40Nuggets Starts -->
<script type="text/javascript">
var _40nmcid = '40NM-XXXX-X';    //replace this with your Account ID
var _40nm_properties = {is_customer:true, num_buys:3};
(function() {
var nm = document.createElement('script');
nm.type = 'text/javascript';
nm.async = true;
      nm.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '40nuggets.com/widget/js/track/track-'+_40nmcid+'.js';
      var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(nm,s);
    })();
</script>
<!-- 40Nuggets Ends -->


After the JS code has been modified such that 40Nuggets can now receive the custom data, you will need to go into edit your Segments, or add a new one, and set up the Custom Parameters you want to use for targeting.

 

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk