From 89504c08ce15cf7c1b03cbde7e5eb77b347ac418 Mon Sep 17 00:00:00 2001 From: Vinicius Brasil Date: Thu, 3 Aug 2023 19:11:26 +0100 Subject: [PATCH] Update docs for cloaked links --- docs/custom-automatic-link-tracking.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/custom-automatic-link-tracking.md b/docs/custom-automatic-link-tracking.md index 38cb525a..c452ff39 100644 --- a/docs/custom-automatic-link-tracking.md +++ b/docs/custom-automatic-link-tracking.md @@ -26,11 +26,9 @@ First, make sure your tracking setup includes the second line as shown below: ``` ## 2. Add the JavaScript that will be sending the link click events to Plausible -You need to add the following code to all of the pages where you want to track your links. You should insert the code below into your HTML page `` section just under the custom event snippet. Here are the changes you will have to make in the code: +You need to add the following code to all of the pages where you want to track your links. You should insert the code below into your HTML page `` section just under the custom event snippet. -- On the line that says `var toBeTracked = '/go/'` change `/go/` to what you want to match with. With this example, any link with a URL that contains `/go/` will be tracked. If simply containing a string value is not enough, see [more flexible URL matching below](#more-flexible-url-matching). - -- (Optional) Give your custom event a new name (`var eventName = 'Cloaked Link: Click'`). The default event name is `Cloaked Link: Click`. Feel free to change it. This is the name that will show up in your Plausible dashboard. +On the line that says `var toBeTracked = '/go/'` change `/go/` to what you want to match with. With this example, any link with a URL that contains `/go/` will be tracked. If simply containing a string value is not enough, see [more flexible URL matching below](#more-flexible-url-matching). ```html