Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
cbc0957
improve description
nickyreinert Jan 23, 2024
e78092e
remove unused main function
nickyreinert Jan 23, 2024
e174d4c
refactoring
nickyreinert Jan 23, 2024
35822c5
remove len check, does not make sense here
nickyreinert Jan 23, 2024
927bf7a
removed type check, because it's not required, general cleanup
nickyreinert Jan 23, 2024
fe2f33d
refactoring
nickyreinert Jan 23, 2024
617ebbd
clean up: remove stats (failed, success) as it's not required
nickyreinert Jan 23, 2024
7e56854
refactoring cleanup
nickyreinert Jan 23, 2024
be332a9
clean up, refactroing
nickyreinert Jan 23, 2024
50f7bca
clean up
nickyreinert Jan 23, 2024
ee2984e
improved setup and first run routine
nickyreinert Jan 23, 2024
9c112ab
clean up inline cod
nickyreinert Jan 23, 2024
2711381
add chromedriver exec
nickyreinert Jan 23, 2024
a65eb84
improve output
nickyreinert Jan 23, 2024
7da22db
new feature: set cookies prior to request
nickyreinert Jan 23, 2024
c343026
add found requests to error output
nickyreinert Jan 23, 2024
fa0167a
add results folder if not exists
nickyreinert Jan 23, 2024
de198e3
add results folder if not exists
nickyreinert Jan 23, 2024
556e1f5
add example settings
nickyreinert Jan 23, 2024
b740f97
add results to gitignore
nickyreinert Jan 23, 2024
07cadf7
fix wrong join instruction
nickyreinert Jan 23, 2024
cb044cd
fix wrong argument order
nickyreinert Jan 23, 2024
939cd98
set default var mapping to "-"
nickyreinert Jan 23, 2024
5f42670
add openpyxl to req
nickyreinert Jan 23, 2024
7abf960
add openpyxl to req
nickyreinert Jan 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.venv
chromedriver
results/*
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# MonitorTrackingCoverage

**MonitorTrackingCoverage** is a Python script that allows you to compare to different states of tracking setups for a given set of web sites.
**MonitorTrackingCoverage** is a Python script that allows you to compare to different states of tracking setups for web analytics for a given set of urls.

This scripts reads all tracked variables from a given URL and puts the result in JSON format to a file.
## Use Case ##

If you run the script at a later time, it will read all tracked variables and compare them to the original variables you read from the URL. The script will document all changes and put the result in JSON format to a file. It will also create an overview containing all scanned URL and put it into an Excel-file.
Imagine you have implemented **Adobe Data Collection** (vulgo: Adobe Launch) and you changed a data element or a rule. Before you want to publish the changes to production, you want to check, if the changes somehow harm the current setup, e.g. if the changes will change how dimensions will be tracked. This script records tracked dimensions from two different development environments to help you to find any issues like that.

It will read all tracked variables/dimensions from a given URL and a defined environment and puts the result to a JSON file.

After that it will read all variables/dimensions for another environment but the same URL and compare the tracked variables/dimensions to the previous result. You will receive a JSOn file and an Excel sheet with all changes and an output to the screen.

All files are placed in the subfolder **./results**.

Expand All @@ -18,6 +22,15 @@ This is an example of the Excel result:

## Prerequisites ##

### Python Dependencies
```
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
```

### Chrome

This script uses the **Selenium** browser automation. It requires you to download the headless browser called "**Chrome driver**" from here:

https://chromedriver.chromium.org/downloads
Expand Down Expand Up @@ -132,4 +145,4 @@ See How [to contribute](https://github.com/dbsystel/tracking-tester/blob/main/CO

This project is licensed under [Apache-2.0](https://github.com/dbsystel/tracking-tester/blob/main/LICENSE)

Copyright 2023 DB Systel GmbH
Copyright 2023 DB Systel GmbH
280 changes: 0 additions & 280 deletions comparator.py

This file was deleted.

Loading