analytics/lib/plausible_web/templates/site
hq1 c81cb16933
Snippet integration verification (#4106)
* Allow running browserless.io locally

* Compile tailwind classes based on extra/ too

* Add browserless runtime configuration

* Ignore verification events on ingestion

* Improve extracting HTML text in tests

* Update dependencies

- Floki will be used on production to parse site contents
- Req will be used to handle redundant stuff like retrying etc.

* Add shuttle SVG to generic components

Later on we'll use it to indicate verification errors

* Connect live socket & allow skipping awaiting the first pageview

* Connect live socket in general settings

* Implement verification checks & diagnostics

* Stub remote services with Req for testing

* Change snippet screen copy

* Update tracker script, so that:

1. headless browsers aren't ignored if `window.__plausible` is defined
2. callback optionally supplies the event response HTTP status

This will be later used to check whether the server acknowledged
the verification event.

* Implement LiveView verification UI

* Embed the verification UIs into settings and onboarding

* Implement browserless puppeteer verification script

It:
 - tries to visit the site
 - defines window.__plausible, so the tracker doesn't ignore test events
 - sends a verification event and instruments the callback
 - awaits the callback to fire and returns the result

* Improve diagnostics for CSP

Only report CSP error if the snippet is already found

* Put verification behind a feature flag/env setting

* Contact Us hint only for Enterprise Edition

* For headless code, use JS context instead of EEx interpolation

* Update diagnostics test with WordPress scenarios

* Shorten exception/throw interception

* Rename test

* Tidy up

* Bust URL always on headless check

* Update moduledoc

* Detect official Plausible WordPress Plugin

and act accordingly on diagnostics interoperation

* Stop using 'rating' in favour of 'interpretation'

* Only report CSP error if no proxy is likely

* Update CHANGELOG

* Allow event-* attributes on snippet elements

* Improve naive GTM detection, not to confuse it with GA4

* Update lib/plausible/verification.ex

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Update test/plausible/site/verification/checks_test.exs

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* s/perform_wrapped/perform_safe

* Update lib/plausible/verification/checks/installation.ex

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Remove garbage

---------

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
2024-05-23 15:00:50 +02:00
..
membership Allow inviting users who are members already (#3797) 2024-02-19 12:12:31 +01:00
change_domain.html.heex Fix class in styled_link and remove existing uses of class (#3631) 2023-12-13 15:29:13 +00:00
csv_import.html.heex Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
edit_shared_link.html.eex Add unique index to shared link name 2021-04-14 11:45:45 +03:00
new_shared_link.html.eex Use autocomplete=new-password for shared link password field (#3589) 2023-12-04 15:27:56 +01:00
new.html.heex Refactor: Split up the choose_plan LV code (#3637) 2023-12-15 13:59:16 -03:00
settings_danger_zone.html.eex Decorate site settings sidebar with heroicons (#3711) 2024-01-22 12:14:47 +01:00
settings_email_reports.html.heex Integrations Settings section (#3427) 2023-10-18 14:01:17 +02:00
settings_funnels.html.heex Refactor: Split up the choose_plan LV code (#3637) 2023-12-15 13:59:16 -03:00
settings_general.html.heex Snippet integration verification (#4106) 2024-05-23 15:00:50 +02:00
settings_goals.html.heex Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
settings_imports_exports.html.heex Remove imports_exports and csv_imports_exports feature flags (#4089) 2024-05-09 10:09:24 +02:00
settings_integrations.html.heex Rename Plugins API Token(s) to Plugin Token(s) (#4075) 2024-05-22 07:45:09 +02:00
settings_people.html.heex Extract button component (#3474) 2023-11-08 11:40:07 +02:00
settings_props.html.heex Refactor: Split up the choose_plan LV code (#3637) 2023-12-15 13:59:16 -03:00
settings_search_console.html.heex remove Plausible Analytics metions from CE (#4121) 2024-05-23 09:43:01 +02:00
settings_shields.html.heex Hostnames shield (#3990) 2024-04-16 20:30:20 +02:00
settings_visibility.html.heex Extract button component (#3474) 2023-11-08 11:40:07 +02:00
snippet_after_domain_change.html.eex Upgrade phoenix (#2902) 2023-05-09 11:51:35 +03:00
snippet.html.heex Snippet integration verification (#4106) 2024-05-23 15:00:50 +02:00