Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add outbound tracking on links #1928

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

smythp
Copy link
Member

@smythp smythp commented Nov 25, 2024

Description

Adding outbound tracking on links to our main CTAs, such as links to the images directory.

Reviewing

I ran a script that uses regex, it would be good to check for edge cases. I'll also do a few manual edits, I'll keep those in separate commits. The commit name will show if it's manual or automated.

Notes

I added a content field so we know what page is generating the outbound link in analytics. I've done some stuff so that it's not a useless path like "index".

References https://github.com/chainguard-dev/internal/issues/4233

cc @sheesh @ltagliaferri @SharpRake

@smythp smythp requested a review from a team as a code owner November 25, 2024 16:54
Copy link

netlify bot commented Nov 25, 2024

Deploy Preview for ornate-narwhal-088216 ready!

Name Link
🔨 Latest commit 279a1b6
🔍 Latest deploy log https://app.netlify.com/sites/ornate-narwhal-088216/deploys/6744b8361462b70008449de1
😎 Deploy Preview https://deploy-preview-1928--ornate-narwhal-088216.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: Patrick Smyth <patrick.smyth@chainguard.dev>
Signed-off-by: Patrick Smyth <patrick.smyth@chainguard.dev>
@smythp
Copy link
Member Author

smythp commented Nov 25, 2024

Added these links to our rumble comparison pages:

https://images.chainguard.dev/directory/image/{{ image_name }}/overview?utm_source=cg-academy&utm_medium=website&utm_campaign=dev-enablement&utm_content=cg-academy-rumble-comparison-{{ image_name }}

Copy link
Collaborator

@amouat amouat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just double check /s

@@ -238,7 +238,7 @@ assume-and-explore:

Let's go over what this configuration does.

First, GitLab requires that pipelines have a shell. To this end, this configuration uses the [`cgr.dev/chainguard/wolfi-base` image](https://images.chainguard.dev/directory/image/wolfi-base/overview) since it includes the `sh` shell.
First, GitLab requires that pipelines have a shell. To this end, this configuration uses the [`cgr.dev/chainguard/wolfi-base` image](https://images.chainguard.dev/directory/image/wolfi-base/overview?utm_source=cg-academy&utm_medium=website&utm_campaign=dev-enablement&utm_content=chainguard/administration/iam-organizations/identity-examples/gitlab-identity) since it includes the `sh` shell.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you check if /s are allowed? I think they might break it and need escaped

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that checks out. I'll replace them with hyphens. They don't need to be machine readable anyway.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked it up out of curiosity. You shouldn't use :/?#[]@!$&'()*+,;=. Hyphen is fine.

@smythp smythp marked this pull request as draft November 25, 2024 20:15
@smythp
Copy link
Member Author

smythp commented Nov 25, 2024

On pause while I get a little review on the utm fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants