Skip to content

Commit

Permalink
fb track
Browse files Browse the repository at this point in the history
  • Loading branch information
scholtz committed Jan 12, 2016
1 parent 3670919 commit 0e0d90d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,20 @@ <h1>Zistili sme, že Váš prehliadač nepodporuje JavaScript</h1>
<script src="js/os-detection.js"></script>
<script src="js/app.js"></script>
<script src="js/ga.js"></script>
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');

fbq('init', '658957580832480');
fbq('track', "PageView");</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=658957580832480&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
<script async src="js/cities.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions js/request-generator-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ RequestGeneratorApp.prototype = {
{
var hash = location.hash.replace( /^#/, '').replace(/&action-.*/, '');
location.hash = hash + '&action-send';
fbq('track', 'CompleteRegistration');
},

initForm: function() {
Expand Down

0 comments on commit 0e0d90d

Please sign in to comment.