Support » Plugin: Events Tracker for Elementor » Possible to add support for Taboola and Outbrain?

  • strikesql

    (@strikesql)


    Hey,

    I’ve personally tried to mod the plugin to add support for Taboola and Outbrain conversion events, but I was wondering would it be possible to add proper support for these networks as well?

    Below are example tracking integration scripts from both of the networks which should allow adding support for them if you are interested.

    
    //TABOOLA PIXEL ID EXAMPLE: 1111111
    //DEFAULT EVENT: page_view
    
    <!-- Taboola Pixel Code -->
    <script type='text/javascript'>
      window._tfa = window._tfa || [];
      window._tfa.push({notify: 'event', name: 'page_view', id: 1111111});
      !function (t, f, a, x) {
             if (!document.getElementById(x)) {
                t.async = 1;t.src = a;t.id=x;f.parentNode.insertBefore(t, f);
             }
      }(document.createElement('script'),
      document.getElementsByTagName('script')[0],
      '//cdn.taboola.com/libtrc/unip/1111111/tfa.js',
      'tb_tfa_script');
    </script>
    <noscript>
      <img src='https://trc.taboola.com/1111111/log/3/unip?en=page_view'
          width='0' height='0' style='display:none'/>
    </noscript>
    <!-- End of Taboola Pixel Code -->
    
    //TABOOLA CUSTOM EVENT NAME EXAMPLE: lead
    
    //TABOOLA CUSTOM TRACKING EVENT EXAMPLE:
    
    <!-- Taboola Pixel Code -->
    <script>
        _tfa.push({notify: 'event', name: 'lead', id: 1111111});
    </script>
    <noscript>
        <img src='https://trc.taboola.com/1111111/log/3/unip?en=lead'
            width='0' height='0' style='display:none'/>
    </noscript>
    <!-- End of Taboola Pixel Code -->
    
    							
    //OUTBRAIN PIXEL ID EXAMPLE: 	00b18db913b911092011hd1hfbubnssifa
    //DEFAULT EVENT: PAGE_VIEW
    
    <script data-obct type="text/javascript">
      /** DO NOT MODIFY THIS CODE**/
      !function(_window, _document) {
        var OB_ADV_ID='00b18db913b911092011hd1hfbubnssifa';
        if (_window.obApi) {var toArray = function(object) {return Object.prototype.toString.call(object) === '[object Array]' ? object : [object];};_window.obApi.marketerId = toArray(_window.obApi.marketerId).concat(toArray(OB_ADV_ID));return;}
        var api = _window.obApi = function() {api.dispatch ? api.dispatch.apply(api, arguments) : api.queue.push(arguments);};api.version = '1.1';api.loaded = true;api.marketerId = OB_ADV_ID;api.queue = [];var tag = _document.createElement('script');tag.async = true;tag.src = '//amplify.outbrain.com/cp/obtp.js';tag.type = 'text/javascript';var script = _document.getElementsByTagName('script')[0];script.parentNode.insertBefore(tag, script);}(window, document);
    obApi('track', 'PAGE_VIEW');
    </script>
    
    //OUTBRAIN CUSTOM EVENT NAME EXAMPLE: lead
    
    //OUTBRAIN CUSTOM TRACKING EVENT EXAMPLE:
    
    <script>
    	obApi('track', 'lead');
    </script>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Possible to add support for Taboola and Outbrain?’ is closed to new replies.