Skip to content

Instantly share code, notes, and snippets.

@benytocarlo
Created June 23, 2014 15:26
Show Gist options
  • Save benytocarlo/9b7a0d3558a28dad7f77 to your computer and use it in GitHub Desktop.
Save benytocarlo/9b7a0d3558a28dad7f77 to your computer and use it in GitHub Desktop.
Tag event con MediaMath
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<!--[if lt IE 8]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<p>Evento MediaMath</p>
<a href="#" class="event">Crear evento</a>
<div class="result"></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.1.min.js"><\/script>')</script>
<script>
$(document).ready(function(){
$( ".event" ).click(function() {
// aca va el codigo de medimath para cada evento
$( ".result" ).html("<img src='http://pixel.mathtag.com/event/img?mt_id=484078&mt_adid=115301&v1=&v2=&v3=&s1=&s2=&s3=' width='1' height='1' />");
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment