mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
Updated regex for gtag to accept measurement ID
This commit is contained in:
parent
7e68563849
commit
ac2ebf375c
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ from analytical.utils import (
|
||||||
is_internal_ip,
|
is_internal_ip,
|
||||||
)
|
)
|
||||||
|
|
||||||
PROPERTY_ID_RE = re.compile(r'^UA-\d+-\d+$')
|
PROPERTY_ID_RE = re.compile(r'^UA-\d+-\d+$|^G-[a-zA-Z0-9]+$')
|
||||||
SETUP_CODE = """
|
SETUP_CODE = """
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id={property_id}"></script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id={property_id}"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue