Rich-text Reply

Using Optimizely to track donations with Springboard/Drupla/Salesforce?

Comms_STB 05-18-15

Using Optimizely to track donations with Springboard/Drupla/Salesforce?

[ Edited ]

I am working on getting an experiment set up in Optimziely and am getting close to figuring it out (expierement is with a donation form), but not sure what the names are of the data fields that fill the containers on the thank you page as we need that to make Optimizely track donation data right in Optimizely. Below is the code but with Convio info, but this particular instance is using Sprinboard/Drupal/Salesforce.

 

Does anyone know what the “S120:dc:giftAmount” and “S120:dc:recurringCurrentStatusString” equivalents would be in Springboard/Drupal/Salesforce?

 

Or can anyone shed any light on how to make it easier to track number of donations and revenue in Optimziely in this case?

 

<script type="text/javascript">
   jQuery(document).ready(function(){
// this pulls in gift amount from convio
var amount = "[[S120:dc:giftAmount]]";  
var e = amount.replace(/\$/g,"");
var t=e*100;

// pushes the gift amt to opt
window.optimizely = window.optimizely || [];
   window.optimizely.push(['trackEvent', 'eventName', {'revenue': t}]);  

// since this snippet is on the TY page, it'll push the custom event 'gave' to opt
window['optimizely'] = window['optimizely'] || [];
window.optimizely.push(["trackEvent", "gave"]);  

// this pulls in whether it was a monthly gift or not (Active/Inactive)
var s = "[[S120:dc:recurringCurrentStatusString]]"; 
if(s=='Active'){ 

// push the custom event 'sustainer' to opt
window['optimizely'] = window['optimizely'] || [];
window.optimizely.push(["trackEvent", "sustainer"]);  
} else {};
   });
</script>
 
Ehsan 05-19-15
 

Re: Using Optimizely to track donations with Springboard/Drupla/Salesforce?

Hi @aweston

 

I wanted to confirm that the custom events you have set up is the best way to send that information to Optimizely.  Just make sure that this script goes below the Optimizely snippet on the page.

 

Hopefully a developer with experience in Convio and Springboard/Drupal/Salesforce can help you with finding the coded equivalent for the values you are trying to capture.

Optimizely