You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 65c5f77
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/carrd-integration.md
+10-14Lines changed: 10 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,15 @@ We display your snippet during the process of adding a new site to your account.
37
37
38
38
* Then paste your Plausible tracking script in the **Code** field
39
39
40
-
* In the snippet, update `plausible.init()` to `plausible.init({ hashBasedRouting: true })`. This allows plausible to track hashed page paths that Carrd uses during navigation.
40
+
* In your copied snippet, set `hashBasedRouting` to `true` in the `plausible.init()` call. Keep the rest of your snippet, including its site-specific script URL, unchanged:
41
41
42
-
* Do click on the **Done** button and then **Publish** your changes. After you change the tracking snippet on your site, all the hash-based page paths on your Carrd website will start being tracked and will be displayed in the **Top Pages** tab of your Plausible Analytics dashboard.
42
+
```js
43
+
plausible.init({ hashBasedRouting:true });
44
+
```
43
45
44
-
<divclass="browser">
45
-
<img alt="Add Plausible Analytics script to Carrd" src={useBaseUrl('img/add-plausible-script-to-carrd.png')} />
46
-
</div>
46
+
If your `plausible.init()` call already contains other options, keep them and add `hashBasedRouting: true`. This allows Plausible to track hashed page paths that Carrd uses during navigation.
47
+
48
+
* Do click on the **Done** button and then **Publish** your changes. After you change the tracking snippet on your site, all the hash-based page paths on your Carrd website will start being tracked and will be displayed in the **Top Pages** tab of your Plausible Analytics dashboard.
47
49
48
50
Now you can go to your Carrd website and verify that Plausible script has been added and to your Plausible account to see whether the stats are being tracked. See here [how to verify the integration](troubleshoot-integration.md).
49
51
@@ -71,6 +73,8 @@ To be sure of your element's ID, you can use your browser's dev tool to inspect
71
73
72
74
### 2. Trigger custom events with JavaScript on your site
73
75
76
+
Keep your [current Plausible tracking snippet](plausible-script.md) installed. Add the code below alongside it; it does not replace your tracking snippet.
77
+
74
78
Here's the code you will need to insert in the `<head>` section of the page where the element ID that you want to track is located. You can use the **Custom Code** feature to do this similarly to how you've inserted the Plausible snippet into your site.
75
79
76
80
Make sure to change the `elementId` line in the code below to include the ID attribute of the element you want to track (`buttons01` in our example).
@@ -97,11 +101,7 @@ Also do change the `classes` line to include the goal name in this format: `plau
Do click on the **Save Changes** button and then **Publish** your changes.
104
+
Click **Done**, then **Publish** your changes.
105
105
106
106
### 3. Create a custom event goal in your Plausible account
107
107
@@ -147,10 +147,6 @@ If you want to trigger multiple custom events on the same site, you don't need t
147
147
</script>
148
148
```
149
149
150
-
<divclass="browser">
151
-
<img alt="track multiple elements in Carrd" src={useBaseUrl('img/track-multiple-elements-carrd.png')} />
152
-
</div>
153
-
154
150
## What's next?
155
151
156
152
-[Create goals](custom-event-goals.md) in your Plausible site settings to match the custom events you set up. They won't appear in your dashboard until you do
Copy file name to clipboardExpand all lines: docs/ghost-integration.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,9 @@ In Ghost you can inject code across your entire site or on an individual post or
18
18
linkText="Start free trial"
19
19
/>
20
20
21
-
* In the **Menu**, click**Settings**, and then **Code Injection**.
21
+
* In Ghost Admin, open**Settings → Advanced → Code Injection**. You can also follow [Ghost's current code injection guide](https://ghost.org/help/code-injection-styles/).
* Add your Plausible Analytics script to the **Site Header** text box. Code added into the **Site Header** field is injected into the `<head>` tag on every page of your site.
23
+
* Paste your [Plausible tracking snippet](plausible-script.md) to the **Site Header** text box. Code added into the **Site Header** field is injected into the `<head>` tag on every page of your site.
28
24
29
25
* After adding your code, click on the **Save** button.
30
26
@@ -38,7 +34,7 @@ The Sign In/Sign up flows are part of Ghost's [Portal](https://ghost.org/help/se
38
34
39
35
However, you can bypass this and customize your sign up flows by using a custom theme on the "[Creator plan](https://ghost.org/pricing/)" or higher.
40
36
41
-
If you're using a custom theme, you can simply add the tagged events extension to your script and CSS class to the element that you want to track as explained in [this doc](https://plausible.io/docs/custom-event-goals).
37
+
If you're using a custom theme, you can keep your Plausible tracking snippet installed and add the event CSS class to the element that you want to track as explained in [this doc](https://plausible.io/docs/custom-event-goals).
Copy file name to clipboardExpand all lines: docs/google-search-console-integration.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,11 +115,7 @@ Google samples its keyword data heavily. The sampling is why your keyword visito
115
115
116
116
## Plausible Analytics will be listed in your Google account settings
117
117
118
-
You can check if Plausible Analytics is integrated with and has the right permissions to your Search Console properties in your Google account within the section **Apps with access to your account**. Here's the [direct link to that section](https://myaccount.google.com/permissions). Here's how it looks.
119
-
120
-
<divclass="browser">
121
-
<img alt="Third-party apps with account access" src={useBaseUrl('img/v2/third-party-apps.webp')} />
122
-
</div>
118
+
Open your Google Account's [connections page](https://myaccount.google.com/connections) and select **Plausible Analytics**. Under the section describing Plausible's access to your Google Account, open **See details** to review its Search Console permissions. Google's [linked-apps guide](https://support.google.com/accounts/answer/13533235) explains how to review or remove access.
Copy file name to clipboardExpand all lines: docs/shopify-integration.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -286,6 +286,8 @@ Your form or button element should have an ID attribute assigned by default. You
286
286
287
287
### 2. Trigger custom events with JavaScript on your site
288
288
289
+
Keep your [current Plausible tracking snippet](plausible-script.md) installed. Add the code below alongside it; it does not replace your tracking snippet.
290
+
289
291
Here's the code you will need to insert in the `<head>` section of the page where the element ID that you want to track is located. You can do this the same way as you've inserted the Plausible snippet into your site.
290
292
291
293
Make sure to change the `elementId` line in the code below to include the ID attribute of the element you want to track (`ContactForm` in our example).
@@ -316,9 +318,6 @@ To represent a space character in goal names, you can use a `+` sign. For exampl
Copy file name to clipboardExpand all lines: docs/squarespace-integration.md
+4-10Lines changed: 4 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,9 @@ Here's how to add Plausible Analytics to your Squarespace site
18
18
19
19
## How to add Plausible to your Squarespace website
20
20
21
-
*On your site's settings page, click on **Advanced** and then click on **Code Injection**
21
+
*Open the **Code Injection** panel for your site. See [Squarespace's code injection guide](https://support.squarespace.com/hc/en-us/articles/205815908-Customize-parts-of-your-site-with-code-injection) for the navigation for your site version.
22
22
23
-
* You can use the **[Custom Code](https://university.Squarespace.com/lesson/custom-code-in-the-head-and-body-tags)** feature in Squarespace to add Plausible tracking code to your website. Site-wide JavaScript code injection is a premium Squarespace feature so you need to upgrade your Squarespace account to a paid subscription plan.
23
+
* You can use the **[Custom Code](https://support.squarespace.com/hc/en-us/articles/205815908-Customize-parts-of-your-site-with-code-injection)** feature in Squarespace to add Plausible tracking code to your website. Site-wide JavaScript code injection is a premium Squarespace feature so you need to upgrade your Squarespace account to a paid subscription plan.
24
24
25
25
*[Paste your Plausible snippet](https://plausible.io/docs/plausible-script) in the **Header Code** section. We display your snippet during the process of adding a new site to your account. You can also see the snippet within the **Site Installation** area of the **General** section in your [site settings](website-settings.md).
26
26
@@ -54,15 +54,9 @@ The easiest way to track form submissions on your Squarespace site is to track t
54
54
<img alt="Edit the form in Squarespace" src={useBaseUrl('img/Edit-form-squarespace.png')} />
55
55
</div>
56
56
57
-
* In the "Content" section, click on "Post-submit". Make sure you select the "Redirect" option and in the "Redirect URL" field type in the path to the thank you page ( i.e. **/thank-you** ).
57
+
* In the **Content** tab, open **Edit Post-Submit**, choose **Redirect**, then click **Attach Link**. Select your thank-you page or enter its URL, then click **Save**. See [Squarespace's form block guide](https://support.squarespace.com/hc/en-us/articles/206566737-Form-blocks) for the current controls.
58
58
59
-
<divclass="browser">
60
-
<img alt="Add redirect URL to your form in Squarespace" src={useBaseUrl('img/add-redirect-url-to-form-in-Squarespace.png')} />
61
-
</div>
62
-
63
-
<divclass="browser">
64
-
<img alt="Add redirect URL to your form in Squarespace" src={useBaseUrl('img/redirect-url.png')} />
65
-
</div>
59
+
Test the redirect while logged out of Squarespace or in a private browser window. Post-submit redirects do not work while you are logged into your site.
66
60
67
61
### 3. Create a pageview goal in your Plausible account
Copy file name to clipboardExpand all lines: docs/webflow-integration.md
+6-33Lines changed: 6 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,6 @@ description: "Add Plausible Analytics to Webflow via Custom Code and track butto
6
6
---
7
7
8
8
import CtaBox from '@site/src/components/CtaBox';
9
-
import useBaseUrl from '@docusaurus/useBaseUrl';
10
9
11
10
Here's how to add Plausible Analytics to your Webflow site and set up the tracking of custom events such as button clicks and form submissions.
12
11
@@ -18,20 +17,12 @@ Here's how to add Plausible Analytics to your Webflow site and set up the tracki
18
17
19
18
## How to add Plausible to your Webflow website
20
19
21
-
*On your project's page, click on the Webflow logo (**W**) in the left-hand side menu and choose **Project Settings**.
20
+
*Open your site's **Site settings** from the Webflow Dashboard, then select **Custom code**.
22
21
23
-
<divclass="browser">
24
-
<img alt="Add custom code to Webflow" src={useBaseUrl('img/add-custom-code-to-webflow.png')} />
25
-
</div>
26
-
27
-
* You can use the **[Custom Code](https://university.webflow.com/lesson/custom-code-in-the-head-and-body-tags)** feature in Webflow to add Plausible tracking code to your website. Site-wide JavaScript code injection is a premium Webflow feature so you need to upgrade your Webflow account to a paid subscription plan.
22
+
* You can use the **[Custom Code](https://help.webflow.com/hc/en-us/articles/33961357265299-Custom-code-in-head-and-body-tags)** feature in Webflow to add Plausible tracking code to your website. Your site or Workspace needs a plan that supports custom code; see Webflow's requirements in the linked guide.
28
23
29
24
* Choose **Custom Code** from the menu and [paste your Plausible snippet](https://plausible.io/docs/plausible-script) in the **Head Code** section. We display your snippet during the process of adding a new site to your account. You can also see the snippet within the **Site Installation** area of the **General** section in your [site settings](website-settings.md).
30
25
31
-
<divclass="browser">
32
-
<img alt="Add Plausible Analytics script to Webflow" src={useBaseUrl('img/add-plausible-script-to-webflow.png')} />
33
-
</div>
34
-
35
26
* Do click on the **Save Changes** button and then **Publish** your changes.
36
27
37
28
Now you can go to your Webflow website and verify that Plausible script has been added and to your Plausible account to see whether the stats are being tracked. See here [how to verify the integration](troubleshoot-integration.md).
@@ -44,17 +35,9 @@ The easiest way to track form submissions on your Webflow site is to track the "
44
35
45
36
First you'll need to create a "thank you" page by clicking on the "Pages" panel and creating the page by clicking on the "Create New Page" button.
46
37
47
-
<divclass="browser">
48
-
<img alt="Create the form submission thank you page in Webflow" src={useBaseUrl('img/create-a-thank-you-page-in-webflow.png')} />
49
-
</div>
50
-
51
38
### 2. Set the redirect URL on form submission
52
39
53
-
Go to the page that contains your form, select the form and click on the gear icon to access the form settings. In the "Redirect URL" field type in the path to the thank you page ( i.e. **/thank-you** )
54
-
55
-
<divclass="browser">
56
-
<img alt="Add redirect URL to your form in Webflow" src={useBaseUrl('img/add-redirect-url-to-form-in-webflow.png')} />
57
-
</div>
40
+
Select your form and open its **Settings** panel. Set the post-submit redirect to your thank-you page, either by selecting the page or entering its path, such as `/thank-you`. Save and publish your changes. See [Webflow's form settings guide](https://help.webflow.com/hc/en-us/articles/33961347548563-How-do-I-add-forms-in-Webflow) for the current controls.
58
41
59
42
### 3. Create a pageview goal in your Plausible account
60
43
@@ -72,14 +55,12 @@ Your goal should now be set up. When you navigate back to your Plausible Analyti
72
55
73
56
### 1. Set an ID to the element you want to track
74
57
75
-
In Webflow, link and button elements don't have a default ID. You'll need to assign an ID by selecting the element and clicking on the settings gear. In the **Designer View**, you'll be able to set the ID.
76
-
77
-
<divclass="browser">
78
-
<img alt="Add an ID to link and button elements in Webflow" src={useBaseUrl('img/add-id-to-link-and-button-webflow.png')} />
79
-
</div>
58
+
Select the link or button in Webflow and open its **Element settings**. Set its **ID** to a unique value, such as `button-click`. Use that same value in the code below.
80
59
81
60
### 2. Trigger custom events with JavaScript on your site
82
61
62
+
Keep your [current Plausible tracking snippet](plausible-script.md) installed. Add the code below alongside it; it does not replace your tracking snippet.
63
+
83
64
Here's the code you will need to insert in the `<head>` section of the page where the element ID that you want to track is located. You can use the **Custom Code** feature to do this similarly to how you've inserted the Plausible snippet into your site.
84
65
85
66
Make sure to change the `elementId` line in the code below to include the ID attribute of the element you want to track (`button-click` in our example).
@@ -108,10 +89,6 @@ To represent a space in a goal name, use a `+` sign. For example: `plausible-eve
Copy file name to clipboardExpand all lines: docs/wordpress-integration.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,6 @@ Then install the plugin from your WordPress dashboard:
29
29
2. Click **Add Plugin** and search for "Plausible Analytics".
30
30
3. Open the official listing, then **Install** and **Activate**.
31
31
32
-
<divclass="browser">
33
-
<img alt="Search and install the official Plausible Analytics WordPress plugin" src={useBaseUrl('img/search-for-plugin.png')} />
34
-
</div>
35
-
36
32
You can also install it from the [official plugin directory](https://wordpress.org/plugins/plausible-analytics/). After activation, the plugin walks you through a Get Started guide. Every option there is also available later in the plugin settings screen, described below.
0 commit comments