We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc9527c commit 5decaf3Copy full SHA for 5decaf3
har2tree/helper.py
@@ -280,7 +280,7 @@ def find_identifiers(html_doc: bytes) -> dict[str, list[str]] | None:
280
# This is beta and kinda fragile, but it's going to find (most) of the google tag IDs
281
# https://support.google.com/google-ads/answer/12326985?hl=en_us_us
282
# NOTE: the doc says 9 X, but all the examples I found have 10 X so we cannot trust it
283
- if google_tag_ids := set(re.findall(rb"(?:G-|AW-|GA-|UA-)\w{9}+", html_doc)):
+ if google_tag_ids := set(re.findall(rb"(?:G-|AW-|GA-|UA-)\w{9,13}", html_doc)):
284
blocklist = {b'UA-Compatible'}
285
google_tag_ids -= blocklist
286
to_return['google_tag_ids'] = list(google_tag_ids)
0 commit comments