Implementing a tracking code from the outside
It may happen that in some cases, you cannot access to the website of your end client. The typical use case is when the client is not techie at all or when, for security reasons, no one want to grant you any access.
If this situation happens, note that in some cases (if the website allowed it) you can inject some code from your own browser to the website of your client, of course those changes will have some consequences only on your browser, but the point is that it is very handy in order to prove that your future implementation will work.
Let's see how that works. So in general browsers will provide you with some addons, extensions in order to do it, some other browsers have built-in features. In our case we will use Mozilla Firefox with the addon Greasemonkey: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
Once installed on your browser, you will see when you click on it that you can insert scripts within in:
- Click on the Greasemonkey logo.
- Click on New user script.
- Name it the way you want within the script.
- Copy/paste the tracking code you would like to execute.
- Then enable it.
And you are good to go. Though always double check within your Firefox console that the script is well executed.