ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Make a copy (File > Make a Copy) of this spreadsheet
2
3
Domain (e.g. htttps://www.domain.com)------>https://lookingformarketing.com
4
5
1. Enter URLS here and enter domain (without trailing slash) above-right.
2. Paths are generated automatically.3. Regex for GA and GSC is generated automatically here.
6
7
List of URLsPathsOutputs
8
https://lookingformarketing.com/books/books
9
https://lookingformarketing.com/courses/courses
10
https://lookingformarketing.com/events/eventsPath Regex for GA
11
https://lookingformarketing.com/tools/tools^(/books|/courses|/events|/tools|/podcasts|/definitions|/documents)$
12
https://lookingformarketing.com/podcasts/podcasts
13
https://lookingformarketing.com/definitions/definitions
14
https://lookingformarketing.com/documents/documents
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Length: 68
29
30
URL Regex for GSC
31
^https://lookingformarketing.com(/books|/courses|/events|/tools|/podcasts|/definitions|/documents)$
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Length: 99
49
50
Notes
51
URLs or Paths containing non-alpha numeric characters may cause issues with matching. The scripts above handle escaping (making regex safe) urls and paths. The way to make a character safe is to excape it with a backslash ("\") so that the regex interpreter knows to treat as a literal character.
52
53
54
55
56
57
58
The maximum length for regular expressions in Google Analytics filters is 255 characters. If using for GA, you may need to break up URLs into sets.
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100