TiQ Switch: A minimal Profile and Environment switcher bookmarklet

For those of you who might be interested, I have created a very minimal Profile and Environment switcher bookmarklet.

I wanted to have an environment switcher that just did the job, while being browser-agnostic and easy to use.

That led me to create this bookmarklet "TiQ Switch", including the use of JavaScript alerts and prompts, which I normally don't use anymore ;-).

The account used it "hard set" in the script code, but all you have to do to change to another profile and/or environment to enter a valid [profile]/[Environment] value in the input field and click the button below that field.

Then the page reloads using the new profile/enviroment.

If you enter value in the correct format, but for a non-existing profile and/or environment, you will "remove" Tealium iQ from your currently debugged pages.

Remove Tealium iQ cookies from you domain to fix that, preferably only the enviroment switcher cookie, being named in a profile/environment name format.

If you have any problems using either below bookmarklet code or non-bookmarklet code, then please refer to the mentioned GitHub repository.

Enjoy!

TiQ Switch screenshots

Sorry about the Danish word "Siger" in the above screenshots ;-)It actually just means the same as "says" in English.My browser just felt that it needed to write it in Danish.

The bookmarket

I can't seem to add the bookmarklet as a link in this message.

But you can grab the link code here, or look at the GitHub repository, which also includes the "non-garbled" non-bookmarlet version.