Created
July 15, 2014 17:50
-
-
Save tommymarshall/81df4bc8f15860c50a12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Floodlight = { | |
init: function() { | |
this.binds(); | |
this.vars(); | |
}, | |
vars: function() { | |
this.$links = $('.fl-record-click') | |
}, | |
binds: function() { | |
this.$links.on('click', this.recordButtonClick); | |
}, | |
recordButtonClick: function() { | |
var axel = Math.random()+""; | |
var a = axel * 10000000000000000; | |
var spotpix = new Image(); | |
var $el = $(this); | |
var cat = $el.data('cat'); | |
var property_name = $el.data('prop'); | |
// <a href="#" class="fl-record-click" data-cat="cwu01" data-prop="something">Link</a> | |
spotpix.src="http://ad.doubleclick.net/activity;src=4076176;type=conve135;cat="+cat+";u1=["+property_name+"];ord=" + a + "?"; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment