@shopify/react-tracking-pixel
Allows React apps to easily embed tracking pixel iframes
Last updated 17 days ago by shopify-dep .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @shopify/react-tracking-pixel 
SYNC missed versions from official npm registry.

@shopify/react-tracking-pixel

Build Status License: MIT npm version npm bundle size (minified + gzip)

Allows React apps to easily embed tracking pixel iframes

Installation

$ yarn add @shopify/react-tracking-pixel

Usage

This library exports a <TrackingPixel /> component, which allows React apps to easily embed tracking pixel iframes.

Basic Example

import TrackingPixel from 'react-tracking-pixel';

// ...

const myurl = 'myurl';

<TrackingPixel url={myurl} />;

With Proconnected Hosts

import TrackingPixel from 'react-tracking-pixel';

// ...

const myurl = 'myurl';
const myhosts = ['example.com', 'moreexamples.com'];

<TrackingPixel url={myurl} preconnectHosts={myhosts} />;

Interface

export interface Props {
  url: string;

  /**
   * Additional hosts to preconnect to. These should be hosts that
   * are connected to by the page that will be loaded in an iframe.
   */
  preconnectHosts?: string[];
}

Current Tags

  • 3.0.30                                ...           latest (17 days ago)

34 Versions

  • 3.0.30                                ...           17 days ago
  • 3.0.29                                ...           23 days ago
  • 3.0.28                                ...           a month ago
  • 3.0.27                                ...           a month ago
  • 3.0.26                                ...           a month ago
  • 3.0.25                                ...           2 months ago
  • 3.0.24                                ...           2 months ago
  • 3.0.23                                ...           3 months ago
  • 3.0.22                                ...           3 months ago
  • 3.0.21                                ...           3 months ago
  • 3.0.20                                ...           3 months ago
  • 3.0.19                                ...           3 months ago
  • 3.0.18                                ...           4 months ago
  • 3.0.17                                ...           4 months ago
  • 3.0.16                                ...           5 months ago
  • 3.0.14                                ...           5 months ago
  • 3.0.13                                ...           5 months ago
  • 3.0.12                                ...           5 months ago
  • 3.0.11                                ...           5 months ago
  • 3.0.9                                ...           6 months ago
  • 3.0.8                                ...           6 months ago
  • 3.0.7                                ...           7 months ago
  • 3.0.6                                ...           7 months ago
  • 3.0.5                                ...           7 months ago
  • 3.0.4                                ...           7 months ago
  • 3.0.3                                ...           8 months ago
  • 3.0.2                                ...           8 months ago
  • 3.0.1                                ...           8 months ago
  • 3.0.0                                ...           8 months ago
  • 2.0.0                                ...           10 months ago
  • 1.0.5                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 74
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |