All Projects → russellsteadman → affiliate

russellsteadman / affiliate

Licence: MIT license
Add affiliation tags to links automatically in the browser

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to affiliate

bool-expr-indexer
A fast boolean expression index implementation, especially for RTB ad selection. A Go implementation of the core algorithm in paper <Indexing Boolean Expression>
Stars: ✭ 49 (-36.36%)
Mutual labels:  ads, advertising
react-advertising
A JavaScript library for display ads in React applications.
Stars: ✭ 50 (-35.06%)
Mutual labels:  ads, advertising
MetaHeac
This is an official implementation for "Learning to Expand Audience via Meta Hybrid Experts and Critics for Recommendation and Advertising"(KDD2021).
Stars: ✭ 36 (-53.25%)
Mutual labels:  marketing, advertising
CoinHive
A nice friendly simple and easly customizable GUI for coinhives javascript miner to embed onto websites so users of your site can interact with features of the miner on every single page this javascript miner is to help those who have problems with advertisements/advertising/ads popups banners mobile redirects malvertising/malware etc and provid…
Stars: ✭ 58 (-24.68%)
Mutual labels:  ads, advertising
opendsp
一款开源的移动dsp广告平台, 内置主流adx对接和开箱即用的dashboard
Stars: ✭ 87 (+12.99%)
Mutual labels:  ads, advertising
python-amazon-paapi
Amazon Product Advertising API 5.0 wrapper for Python 💰
Stars: ✭ 123 (+59.74%)
Mutual labels:  amazon, affiliate
tag-manager
Website analytics, JavaScript error tracking + analytics, tag manager, data ingest endpoint creation (tracking pixels). GDPR + CCPA compliant.
Stars: ✭ 279 (+262.34%)
Mutual labels:  marketing, advertising
aws2openapi
Amazon Web Services API description to OpenAPI 3.0 definition
Stars: ✭ 45 (-41.56%)
Mutual labels:  amazon
Amazon-Price-Alert
Price tracker of Amazon
Stars: ✭ 83 (+7.79%)
Mutual labels:  amazon
amazon wishlist pricewatch
Periodically check your public Amazon wishlist for price reductions.
Stars: ✭ 22 (-71.43%)
Mutual labels:  amazon
merkalysis
A marketing tool that helps you to market your products using organic marketing. This tool can potentially save you 1000s of dollars every year. The tool predicts the reach of your posts on social media and also suggests you hashtags for captions in such a way that it increases your reach.
Stars: ✭ 28 (-63.64%)
Mutual labels:  marketing
static-calltracking
Скрипт подмены номеров для статического коллтрекинга
Stars: ✭ 18 (-76.62%)
Mutual labels:  marketing
Selfhosted-Google-Photos-Alternative
A complete guide on exiting Google, Amazon or any proprietary service Photos storage with all the features you would want.
Stars: ✭ 143 (+85.71%)
Mutual labels:  amazon
daily-monetization
Serve ads from different providers
Stars: ✭ 29 (-62.34%)
Mutual labels:  ads
universal
A counterpart to common package to be used with Angular Universal
Stars: ✭ 115 (+49.35%)
Mutual labels:  dom
extensions
Code Generators and Extensions for vanilla-rtb stack
Stars: ✭ 16 (-79.22%)
Mutual labels:  ads
vanilla-caret-js
Set and get Caret position (contenteditable or TextArea) using Vanilla JavaScript
Stars: ✭ 31 (-59.74%)
Mutual labels:  dom
vue-drag-select
A Vue component for drag selecting elements. Inspired by react-drag-select.
Stars: ✭ 73 (-5.19%)
Mutual labels:  dom
Adware-ads-network-server
Online Advertising Network Server
Stars: ✭ 44 (-42.86%)
Mutual labels:  ads
dom
Package for access and manipulate DOM element in HTML file
Stars: ✭ 29 (-62.34%)
Mutual labels:  dom

Affiliate

Affiliate is a platform agnostic link affiliator. Simplify affiliating links with automatic affiliation in the browser. Affiliate works with libraries that mutate the DOM after the page loads, including React.

🌟 Star me on Github Download via NPM Use via CDN Bundle small when minified Bundle small when minified and gunzipped

Installation

Use NPM or Yarn

$ npm install affiliate
$ yarn add affiliate

Or use a CDN (check out the codeless setup)

<script src="https://cdn.jsdelivr.net/npm/affiliate@5/dist/web/affiliate.web.js"></script>

The precompiled version of affiliate@5 supports modern browsers (i.e. ES2016 or above) by default.

What It Can Do

Affiliate can modify query tags (e.g. setting ?tag=my-tag, which is the most common method for affiliate tags), modify URL paths, and modify host names.

<a href="https://example.com/shop/product/item-id">Original</a>
<a href="https://example.com/shop/product/item-id?ref=my-tag">New Query Tags</a>
<a href="https://example.com/shop/product/item-id/ref/my-tag"
  >Modified URL Path</a
>
<a href="https://my-tag.example.com/shop/product/item-id">Modified Host Name</a>

Affiliate has easy plugins, including one for Amazon, which simplify adding affiliate links even more.

Basic Setup

Read the documentation for more advanced usage.

import Affiliate from 'affiliate';

const aff = Affiliate.create({
  tags: [
    {
      hosts: ['example.com', 'www.example.com'],
      query: {
        ref: 'my-tag', // This means ?ref=my-tag
      },
    },
    {
      hosts: ['example.org', 'shop.example.org'],
      query: {
        tag: 'my-tag2', // This means ?tag=my-tag2
      },
    },
  ],
});

aff.attach();

Documentation

Affiliate is simple and quick to set up, even for more complex usage. Read the docs at: affiliate.js.org.

Blogs and Related Sites

A simplified codeless solution might better suit some sites that use content module systems, such as WordPress, SquareSpace, etc.

Insert this code within the HTML <head>...</head> tag. The contents of the data-auto-affiliate attribute will tell Affiliate what to do.

<script
  data-auto-affiliate="WHERE amazon.com, www.amazon.com SET tag = MY-AMAZON-TAG"
  src="https://cdn.jsdelivr.net/npm/affiliate@5/dist/web/affiliate.web.js"
  async
  id="aff-js"
></script>

data-auto-affiliate Syntax

The syntax for data-auto-affiliate is capital WHERE, a comma separated list of domains, capital SET, and then comma separated list of URL queries in the format key=value. Multiple website groups can be separated by a capital AND.

WHERE amazon.com, www.amazon.com SET tag = MY-AMAZON-TAG AND WHERE example.com, shop.example.com SET ref = MY-OTHER-TAG

Left with Questions?

If for any reason you feel that this documentation is unclear or incomplete, add an issue detailing what needs to be improved.

Star This Project

Like this project? Let me know by putting a star on it. 😉🌟

License

MIT (C) Russell Steadman. Learn more in the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].