How to pass arbitrary values to Justuno for custom targeting rules

This feature is designed for enterprise clients ONLY and must be implemented by a web developer. 

We provide two different methods for passing arbitrary values to Justuno for use with our targeting rules.
 
Method 1 - call this javascript function to store arbitrary key/value pairs in the user's profile:
 
Step 1: Place this custom JSON object on your page and add any arbitrary keys to the targeting object:
 
<script>
   window.juapp=window.juapp||function(){(window.juapp.q=window.juapp.q||[]).push(arguments)};
   /* 
   replace the [...] portions below with the actual key / values.
   */
   juapp('arb','[key example : first_name]','[value]');
   juapp('arb','[key example : location]','[value]');
</script>
 
That way you can then utilize that data in your targeting rule like the below.  This example essentially only shows the promotion once if the first_name key is not blank and the location object is equal to san francisco.
 
Justuno_Admin_2017-03-10_10-27-31.png


Method 2 - placing a json object on any page you wish to utilize the rules:
 
Step 1: Place this custom JSON object on your page and add any arbitrary keys to the targeting object:
 
<script>
   /* 
   replace the [...] portions below with the actual key / values.
   */
   var ju_options = 
    {
      'targeting': {
           '[key example: first_name]':'[value]',
           '[key example: location]':'[value]'
      }
    };
</script>
That way you can then utilize that data in your targeting rule like the below.  This example essentially only shows the promotion once if the first_name object is not blank and the location object is equal to san francisco.
 
 
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.