If you’re accessing the internet through some sort of company proxy server, then you might have had issues connecting to API’s in R.
I got the problem while trying to use the RSiteCatalyst library (https://randyzwitch.com/rsitecatalyst/), and I didn’t really get any error messages, that made it clear to me what was causing the issue.

But then I stumbled upon the solution, while I was searching Google for a solution, after a lot of unsuccesful attempts.
It helps a lot, if you, more specifically, know what to search for 😉

Apparently, R isn’t automatically using the same proxy setting as Windows.
I don’t know about other OS’, but that’s at least the case for Windows, while using R Studio and a new version of R.
And if you have to access the internet through a proxy, then it won’t work if you’re not going through the proxy as supposed to.

This is where I found the solution:
Yep, also a Randy Zwitch link 🙂

And this is the code you need to add to your R scripts, to make R use the same proxy settings as set in Windows.

This trick also works, if you’re using R code as a connector in PowerBI!


If you don’t know about it already, the Danish agency IIH Nordic organizes Web Analytics Wednesday Copenhagen several times a year.

Despite the fact, that it is named “Web Analytics”, the Copenhagen version spans different subject from the world of digital marketing.
I wouldn’t call the majority of presentations very technical or advanced, but variation in subjects make it interesting to see what’s up each time.
Though, from time to time, some techie nuggets do surface  😎 

It is no secret, that I used to work for IIH Nordic.
Even though I now work at Nordea, I still choose to go as often as possible.
It’s a super nice event for networking, and a chance to keep taps on what other, mostly Danish, web analytics peeps are up to.

Quite often non-Danish speakers participate, so a lot of the presentations are in English, making it a bit more international.
Earlier speakers include: Tim Wilson, Daniel Waisberg, Mark Edmondson, Simo AhavaCraig Sullivan and me 😉
So, it indeed spans different areas of the analytics world.

Learn more?

To learn more, you can look at the following IIH Nordic page, nicely describing WAW CPH for you: https://iihnordic.com/events/web-analytics-wednesday/
It even includes a video introduction, featuring my former colleague Steen Rasmussen  🙂

To see a 2016 presentation by me (in Danish), look at the following link: http://tv.iihnordic.com/peter-meyer-iih-nordic-enterprise-analytics
Please forgive me in advance 😉

Hope to see you there!



A minimalistic profile and environment switcher bookmarklet for Tealium iQ.

I created this bookmarklet to make it easier for myself to switch between different environment and profiles, while working with Tealium iQ implementation and debugging.

Tealium already made a profile/environment switcher.
But I encountered issues with that one, and chose to create this very minimalistic alternative, for use by myself, and the team I work in.

To get some open sharing of Tealium iQ helper tools going, I have now decided to make it publicly available.

I hope you find it useful, and welcome comments and contributions.
Information about other helper tools you might know of, will also be greatly appreciated.

If you choose to make your own versions, or just make updates to this one, then please do share your work 🙂

All the best,

How to add it

To add the bookmarklet to your browser, drag the following link button to the bookmark bar.

TiQ Switch

To see a “non-garbled” version of the JavaScript code, please refer to the bottom of this post, where you can find a link to the Git repository.

You can also grab the following bookmarklet code, which might be older than the version in the Git repo.

How to use it

1. Click the bookmarklet link

2. If Tealium iQ isn’t found implemented on the page, you see the following message TiQ Switch - TiQ not found

2. Hopefully see the following poup
TiQ Switch - Popup

3. Enter desired profile and enviroment in the popup

4. Click the “OK” button to switch profile/environment

5. If you entered an invalid format, you see the following error message
TiQ Switch - Error

6. If no error occured, the page reloads using the newly entered Tealium iQ profile/environment combination

Git repository

Fell free to check you the “non-garbled” code, which you can find in the following public GitHub repository.