Skip to content

Instantly share code, notes, and snippets.

@kolbaba
Last active September 26, 2019 14:32
Show Gist options
  • Save kolbaba/469b69a69a1422909329631117b03f30 to your computer and use it in GitHub Desktop.
Save kolbaba/469b69a69a1422909329631117b03f30 to your computer and use it in GitHub Desktop.
PNT Usage

Examples of usage

This document contains references in relation to the PNT & Form Tracking documentation.

GoNorth Script

<script>
(function(l,e,a,d,s) {
// straightnorth.com - 2018-10-29T13:12:18Z
window._GNL=window._GNL||{};window._GNL.config = l;window._GNL.callback = e;
a=document.createElement('script');
a.src='https://8ab0a26cb0027939bcf5-49c99c3c0c9c98b3365b710757036e1b.ssl.cf5.rackcdn.com/10001.js';
a.async=true;d=document.getElementsByTagName('script')[0];d.parentNode.insertBefore(a, d)})
({property: 10001, debug: false, selector: [‘code here’]},
function(leads) {
  // leads.submitOn('click', 'a.link-submit')
  // leads.pollForForm('.late-form')
})
</script>

ignoreFields

ignoreFields: ['bad-field']

<script>
(function(l,e,a,d,s) {
// straightnorth.com - 2018-10-29T13:12:18Z
window._GNL=window._GNL||{};window._GNL.config = l;window._GNL.callback = e;
a=document.createElement('script');
a.src='https://8ab0a26cb0027939bcf5-49c99c3c0c9c98b3365b710757036e1b.ssl.cf5.rackcdn.com/10001.js';
a.async=true;d=document.getElementsByTagName('script')[0];d.parentNode.insertBefore(a, d)})
({
  property: 10001,
  debug: true,
  executeMongoose: false,
  selector: ['.pnt', '.select-this-form'],
  ignoreFields: ['bad-field-goes-here']
})
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment