What is a token?
A token uniquely identifies a promotion on your store. It is used in a URL to trigger the promotion for those visitors that have access to the discount Ninja.
When is a token used?
Should I add the token to the URL?
If you have generated the Discount Ninja through the app then the token has automatically been added to the URL.
Here's what the URL looks like for a ficticious token ABCDE: http://myshop.myshopify.com/products/myproduct?variant=0123456&token=ABCDE
How do I add the token to a URL I built myself?
You can add the token to URLs you build manually.
Simply use it in a url as follows:
- As the only or first parameter (note the ?): "http://mysite.com?token=ABCDE"
- As one of many parameters (note the &): http://mysite.com?utmcampaign=mycampaign&token=ABCDE
Where do I find the token?
Edit your promotion and go to the URL tab.
Scroll down, the token is at the bottom of the tab.
Click the clipboard button to the right of the token to copy it.