Integration Code Examples

Facebook Pixel

  <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',
      'https://connect.facebook.net/en_US/fbevents.js');
      fbq('init', 'XXXXXXXXXX');
      fbq('trackCustom', 'Poltio',
      {'Parante Page Url': '[parent_page_url]',
          'Content Title': '[content_title]',
          'Content Id': '[content_id]',
          'Question Title': '[q_title]',
          'Answer Title': '[a_title]',
          'Result Title': '[r_title]',
      });
  </script>
  <noscript>
      <img
          height="1"
          width="1"
          style="display:none"
          src="https://www.facebook.com/tr?id=XXXXXXXXX&ev=Poltio&noscript=1"
      />
  </noscript>

Adobe Audience Manager Signal

  <img src="https://<domain>/event" width="1" height="1" />

Google Tag Manager (with relay embbedded in your site)

  <script>
      try {
          var postObject = JSON.parse(
              JSON.stringify({
              gtmRelay: true,
              gtmDl: 'dataLayer',
              gtmData: {
                  event: 'your_event',
                  action: 'start',
                  form_name: '[content_title]',
                  page: '[parent_page_url]',
                  },
              })
          )
      parent.postMessage(postObject, '*')
      } catch (e) {
          window.console && window.console.log(e)
      }
  </script>

Google Tag Manager (not embedded in social media or direct link )

  <script>
      try {
          dataLayer.push({
              source: "parent",
              event: "your_parent",
              action: "vote",
              form_name: "[content_title]",
              q_title: "[q_title]",
              a_title: "[a_title]",
              url: "[parent_page_url]",
          });
      }
  </script>