Skip to content

Instantly share code, notes, and snippets.

@shierro
Last active August 22, 2018 14:14
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 shierro/f289ffd24e984a170fc7dff146907fab to your computer and use it in GitHub Desktop.
Save shierro/f289ffd24e984a170fc7dff146907fab to your computer and use it in GitHub Desktop.
gemini-send-lead-event.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Test - Send Post Conversion</title>
<script type="text/javascript">
(function(w,d,t,r,u){w[u]=w[u]||[];w[u].push({'projectId':'10000','properties':{'pixelId':'10062155'}});var s=d.createElement(t);s.src=r;s.async=true;s.onload=s.onreadystatechange=function(){var y,rs=this.readyState,c=w[u];if(rs&&rs!="complete"&&rs!="loaded"){return}try{y=YAHOO.ywa.I13N.fireBeacon;w[u]=[];w[u].push=function(p){y([p])};y(c)}catch(e){}};var scr=d.getElementsByTagName(t)[0],par=scr.parentNode;par.insertBefore(s,scr)})(window,document,"script","https://s.yimg.com/wi/ytc.js","dotq");
</script>
<script type="text/javascript">
window.onload = () => {
window.dotq.push({
'projectId': '10000',
'properties': {
'pixelId': '10062155',
'qstrings': {
'ec': 'View content', // event category
'ea': 'ViewProduct', // 'insert the standard value', -- this represents the user interaction with your product
'el': 'rarebirdslabs', // event label
}
}
});
window.dotq.push({
'projectId': '10000',
'properties': {
'pixelId': '10062155',
'qstrings': {
'ec': 'Lead',
'el': 'TestLead', // event label
'ea': 'TestLead'
}
}
});
}
</script>
<noscript>
<img src="https://sp.analytics.yahoo.com/spp.pl?a=10000&.yp=10062155"/>
</noscript>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment