1.0.1 • Published 5 years ago

referrer-catchup v1.0.1

Weekly downloads
3
License
ISC
Repository
-
Last release
5 years ago

NPM version Build Status Dependency Status

ReferrerCatchUp

A JavaScript plug-in that appends GET parameters attached to the current page URL only to links that specify a specific URL destination. It is used to measure the effect at the time of transition from a certain advertisement to cart.

How to use

<script src="https://cdn.jsdelivr.net/gh/ryo-hisano/referrer-catchup@1.0.0/dist/ref.js" defer></script>
<script defer>
  new ReferrerCatchUp({
    allow_domains: ['google.co.jp'],
    ignore_lists: ['utm_medium', 'utm_source', 'utm_campaign']
  });
</script>

Extended function

OptionsContentsDefault valueExample
allow_domainsDomain Allow List. Change only the href that has the specified domain as the link destination.None'google.co.jp'
ignore_listsParameter ban list. Specify a parameter that you do not want to add to href.'*'(All)'utm_medium', 'utm_source', 'utm_campaign'