Skip to content

Instantly share code, notes, and snippets.

@onesup
Created January 13, 2014 11:19
Show Gist options
  • Save onesup/8398650 to your computer and use it in GitHub Desktop.
Save onesup/8398650 to your computer and use it in GitHub Desktop.
트랙킹 코드
$('#behind_tracking').bind('click', function(e) {
e.preventDefault();
$.ajax({
url:"http://i85.icast-ad.com/track?ccd=1185&mcd=01040601&pcd=1505",
type: "GET",
success: function(response) {
window.location.href = $('#behind_tracking').attr("href");
},
headers: {
'X-Transaction': 'POST Example',
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment