I would like to install a piece of javascript on my website which when loaded looks at the referring url from the last page a visitors was on (internal or external) and serves content based on a keyword in the url.
## Deliverables
Summary:
I would like to install a piece of javascript on my website which when loaded looks at the referring url from the last page a visitors was on (internal or external) and serves content based on a keyword in the url.
On the admin side
An account is setup
User logs in where they can
* Create a content box
* Copy the code for the content box
* Add content to the box and set the priority & keyword
Content Box: Will be the piece of code embedded on a website to display content
Content Variation: One of the potential pieces of content (HTML code) that will be loaded based on the trigger keyword in a a referringurl
A content box will have multiple content variation each to be triggered by a different keyword (if multiple keywords are required they are separated by commas) in the referringurl as well as a default piece of content (for direct / untracked). Each variation will also be given a priority in the case that a visitor comes from a url which contains keyword that triggers two different variations, the variation with the higher priority will be served.
Up to 20 content options can be added.
So for example
I might setup a content box and call it homepage (I will pate the javascript on the homepage of my website)
1. Then I add a content variation to that box pasting in the html "Hi are you looking for cats?" then set the keyword to be "cats,google" (Priority 1)
2. I add a content variation to that box pasting in the html "Hi are you looking for cats?" then set the keyword to be "cats" (Priority 2)
3. I set up a third piece of content pasting "Are you looking for a dog?" then set the keyword to dog (Priority 3)
4. I set up a final "Hi" as the (Default)
Now now when a user visits from
1. [login to view URL]:en-US:official&client=firefox-a
Since both cats and google appear in the string they will get the first piece of content
2. [login to view URL]
Since only cats appears in the referral string the second piece of content is served.
Other notes
- It is important that the content loads quickly and seamlessly
- The script will be installed on a domain other than the one that the code is pasted