| skipped 19 lines |
20 | 20 | | // regex 1 |
21 | 21 | | regex := regexp.MustCompile(`www\.googletagmanager\.com/ns\.html\?id=[A-Z0-9\-]+`) |
22 | 22 | | data := regex.FindStringSubmatch(content) |
23 | | - | fmt.Println(data) |
24 | 23 | | |
25 | 24 | | if len(data) > 0 { |
26 | 25 | | gtm := strings.Split(data[0], "id=")[1] |
| skipped 15 lines |
42 | 41 | | //for _, id := range ua { |
43 | 42 | | // results = append(results, id[0]) |
44 | 43 | | //} |
45 | | - | |
46 | | - | fmt.Println("ExtractGoogleTagManger: ", results) |
47 | 44 | | return results |
48 | 45 | | } |
49 | 46 | | |