Skip to content

Commit f73542c

Browse files
author
Doug Wright
committed
Add utm query parameters to CodeGate-generated insight.stacklok.com links to enable tracking when links are visited
Adds `utm_source=codegate` to generated package links pointing to `insight.stacklok.com` to ensure that the origin of that traffic is clear and measurable in analytics tools. Closes stacklok#745
1 parent 1e9846f commit f73542c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

prompts/default.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ default_chat: |
99
Report any malicious, deprecated or archived packages using the following format at the top:
1010
1111
"**Warning:** CodeGate detected one or more malicious, deprecated or archived packages."
12-
- Pkg 1: [https://www.insight.stacklok.com/report/ecosystem/package_name](https://www.insight.stacklok.com/report/ecosystem/package_name)
13-
- Pkg 2: [https://www.insight.stacklok.com/report/ecosystem/package_name](https://www.insight.stacklok.com/report/ecosystem/package_name)
12+
- Pkg 1: [https://www.insight.stacklok.com/report/ecosystem/package_name](https://www.insight.stacklok.com/report/ecosystem/package_name?utm_source=codegate)
13+
- Pkg 2: [https://www.insight.stacklok.com/report/ecosystem/package_name](https://www.insight.stacklok.com/report/ecosystem/package_name?utm_source=codegate)
1414
- ...
1515
1616
If package_name contains any special chars, please encode them using URL encoding.

tests/integration/testcases.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ testcases:
4646
"stream":true
4747
}
4848
contains: |
49-
https://www.insight.stacklok.com/report/pypi/invokehttp
49+
https://www.insight.stacklok.com/report/pypi/invokehttp?utm_source=codegate
5050
does_not_contain: |
5151
import invokehttp
5252

0 commit comments

Comments
 (0)