npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@owneriq/analytics.js-integration-owneriq-pixel

v1.0.18

Published

The OwnerIQ analytics.js integration.

Downloads

22

Readme

analytics.js-integration-owneriq Build Status

OwnerIQ Pixel integration for Analytics.js.

Quick Start

A typical/minimal owneriq page tracking would be like:

<!-- OwnerIQ Analytics tag --> 
<!-- Company Name - Website Analytics Tag --> 
<script type="text/javascript"> 
window._oiqq = window._oiqq || []; 
_oiqq.push(['oiq_addPageLifecycle', '{tag_id}']); 
_oiqq.push(['oiq_doTag']); 
(function() { 
var oiq = document.createElement('script'); oiq.type = 'text/javascript'; oiq.async = true; 
oiq.src = document.location.protocol + '//px.owneriq.net/stas/s/{data_group_id}.js'; 
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(oiq, s); 
})(); 
</script> 
<!-- End OwnerIQ tag --> 

A analytics page view tracking equivalent would be like:

<script>
// somewhat loader to make sure the analytics instance is available
analytics.initialize();
analytics.page();
</script>

A typical/minimal owneriq conversion tracking would be like:

<!-- OwnerIQ Conversion tag --> 
<!-- Company Name - Sale Purchase Tag --> 
<script type="text/javascript"> 
var _oiq_lifecycle = '{tag_id}'; window._oiqq = window._oiqq || []; 
_oiqq.push(['oiq_addPageLifecycle', _oiq_lifecycle]); 
_oiqq.push(["oiq_addCustomKVP",["brand_1","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["cc_type","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["cust1","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["customer_id","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["customer_type","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["customer_value","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["google_product_category_1","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["gtin_1","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["id_1","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["mpn_1","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["order_id","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["price_1","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["product_type_1","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["quantity_1","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["title_1","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["total_cost_notax","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["total_cost_tax","value"]]); 
_oiqq.push(["oiq_addCustomKVP",["total_quantity","value"]]); 
_oiqq.push(['oiq_doTag']); 
(function() { 
var oiq = document.createElement('script'); oiq.type = 'text/javascript'; oiq.async = true; 
oiq.src = 'https://px.owneriq.net/stas/s/{data_group_id}.js'; 
var oiq_doctitle = 'Default Conversion - do not edit'; 
if (typeof document != 'undefined' && document){ if(document.title!=null && document.title!='') 
{oiq_doctitle = document.title; } 
} 
var oiq_conv = document.createElement('script'); oiq_conv.type = 'text/javascript'; oiq_conv.async = true; 
oiq_conv.src = 'https://px.owneriq.net/j?pt={data_group_id}&s='+_oiq_lifecycle+'&sConvTitle='+oiq_doctitle+'&cnv=true'; 
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(oiq, s); 
s.parentNode.insertBefore(oiq_conv, s); 
})(); 
</script> 
<!-- End OwnerIQ tag --> 

A analytics conversion tracking equivalent would be like:

<script>
// somewhat loader to make sure the analytics instance is available
analytics.init(settings);
analytics.track('Order Completed', {
  checkout_id: 'fksdjfsdjfisjf9sdfjsd9f',
  order_id: '50314b8e9bcf000000000000',
  affiliation: 'Google Store',
  total: 27.50,
  revenue: 25.00,
  shipping: 3,
  tax: 2,
  discount: 2.5,
  coupon: 'hasbros',
  currency: 'USD',
  products: [
    {
      product_id: '507f1f77bcf86cd799439011',
      sku: '45790-32',
      name: 'Monopoly: 3rd Edition',
      price: 19,
      quantity: 1,
      category: 'Games',
      url: 'https://www.example.com/product/path',
      image_url: 'https:///www.example.com/product/path.jpg'
    },
    {
      product_id: '505bd76785ebb509fc183733',
      sku: '46493-32',
      name: 'Uno Card Game',
      price: 3,
      quantity: 2,
      category: 'Games'
    }
  ]
});
</script>

License

Released under the MIT license.