Skip to content

Instantly share code, notes, and snippets.

@dylanvalade
Last active February 26, 2016 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylanvalade/3e1ae0e384d9046ae6d5 to your computer and use it in GitHub Desktop.
Save dylanvalade/3e1ae0e384d9046ae6d5 to your computer and use it in GitHub Desktop.
Causedrop Step 1: Add your cause's ad scripts. Fictional example for World Wide Fund for Nature (WWF)
<!-- WWF's Facebook Code for Ad Audience Targeting -->
<script type="text/javascript">
var fb_param = {};
fb_param.pixel_id = '60063372118';
fb_param.value = '0.00';
(function(){
var fpw = document.createElement('script');
fpw.async = true;
fpw.src = '//connect.facebook.net/en_US/fp.js';
var ref = document.getElementsByTagName('script')[0];
ref.parentNode.insertBefore(fpw, ref);
})();
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=600633721187&amp;value=0" /></noscript>
<!-- WWF's Google Code for Remarketing -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 8563460180;
var google_conversion_label = "4kjsdMz5jQIQlMjD_AM";
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script>
<noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1056816048/?value=0&amp;label=fvQbCJCtjQIQsPf29wM&amp;guid=ON&amp;script=0"/></div> </noscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment