Skip to content

Conversation

Copy link

Copilot AI commented Oct 10, 2025

This PR removes all Google Tag Manager (GTM) code, cookies/localStorage, UTM tracking, Mixpanel analytics, and iubenda tracking consent management from the testcontainers-site repository to create a privacy-focused website without any tracking or analytics.

Changes

Removed GTM Scripts

  • Removed GTM initialization script from layouts/_default/baseof.html head section
  • Removed GTM noscript iframe fallback from the body section

Removed All Cookies and Client-Side Storage

  • Removed unused getCookie functions from both assets/js/main.js and layouts/authorized/baseof.html
  • Removed localStorage usage for announcement banner dismissal (banner now dismisses for current session only)
  • Website now operates completely without cookies or client-side storage

Removed All UTM Tracking

  • Removed UTM collection logic from assets/js/main.js that captured referrer and URL parameters
  • Removed parseUtms() function that extracted UTM parameters (utm_campaign, utm_source, utm_medium, utm_term, utm_content)
  • Removed code that added UTM parameters to signup links and forms
  • Removed code that added hidden UTM fields to signup forms

Removed All Mixpanel and Attribution Code

In layouts/authorized/baseof.html:

  • Removed Mixpanel SDK initialization script
  • Removed attribution tracking that captured UTMs, referrer, landing page, and installation ID
  • Simplified to just redirect immediately to the dashboard without any tracking

Removed Tracking Consent Management

In layouts/partials/footer.html:

  • Removed iubenda subfooter section with Privacy Policy, Cookie Policy, "Your Privacy Choices" (CCPA), and "Notice at Collection" links
  • Removed iubenda.js script loader

Added Infrastructure Improvements

In netlify.toml:

  • Added redirect from /desktop/authorized/ to https://app.testcontainers.cloud/api/auth/login (302 status)
  • This eliminates the need for the client-side redirect page and handles the redirect at the edge/CDN level

Updated Documentation

Updated README.md to:

  • Remove GTM references
  • Remove TCD install attribution documentation
  • Remove references to Mixpanel tracking
  • Remove iubenda tracking consent reference
  • Update analytics section to clarify links point to historical data only, with note that analytics are no longer being recorded

Impact

Privacy-Focused: Website now operates completely without any tracking, cookies, or client-side storage (excluding third-party libraries)
Simpler Code: Removed all analytics and tracking dependencies
Cleaner Experience: Users are no longer tracked across the site
Faster Page Loads: Removed external analytics scripts
No Consent UI: Removed tracking consent management UI from footer
Better Infrastructure: Desktop authorization redirect now handled at CDN level instead of client-side

Verification

Comprehensive search confirms zero remaining references to:

  • "gtm" / "GTM"
  • "Google Tag Manager"
  • "tag-manager.testcontainers.com"
  • GTM container ID "GTM-5LGVXVD"
  • document.cookie or getCookie functions
  • localStorage usage (in owned code)
  • Mixpanel tracking code
  • UTM tracking code (UTM parameters in content URLs for marketing campaigns remain as expected)
  • iubenda tracking consent code
Original prompt

Remove all Google Tag Manager code. That should mostly reside in layouts/_default/baseof.html.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@netlify
Copy link

netlify bot commented Oct 10, 2025

Deploy Preview for testcontainers-site ready!

Name Link
🔨 Latest commit 061d54d
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-site/deploys/68fb67c16ccb3400080d4201
😎 Deploy Preview https://deploy-preview-248--testcontainers-site.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 project configuration.

@kiview
Copy link
Member

kiview commented Oct 10, 2025

@copilot Also remove all cookies from the website.

Copilot AI changed the title [WIP] Remove Google Tag Manager code from base layout Remove all Google Tag Manager code Oct 10, 2025
Copilot AI requested a review from kiview October 10, 2025 12:09
Copilot finished work on behalf of kiview October 10, 2025 12:09
Copy link
Author

Copilot AI commented Oct 10, 2025

@copilot Also remove all cookies from the website.

Done. Removed all cookie and localStorage usage from the website including:

  • Unused getCookie functions in both assets/js/main.js and layouts/authorized/baseof.html
  • localStorage usage for announcement banner dismissal (now dismisses only for current session)

Commit: e6c7a87

Copilot AI changed the title Remove all Google Tag Manager code Remove all Google Tag Manager code and cookies from the website Oct 10, 2025
Copilot finished work on behalf of kiview October 10, 2025 12:13
Copilot AI changed the title Remove all Google Tag Manager code and cookies from the website Remove all Google Tag Manager, cookies, UTM tracking, and analytics from the website Oct 10, 2025
Copilot finished work on behalf of kiview October 10, 2025 12:18
Copilot AI requested a review from kiview October 10, 2025 12:18
@kiview kiview marked this pull request as ready for review October 20, 2025 10:15
@kiview kiview requested a review from leocross October 20, 2025 10:15
Copy link
Contributor

@leocross leocross left a comment

Choose a reason for hiding this comment

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

A couple of additional cleanups could be done, I think the removing the now redundant iubenda code in the footer layout should be done. The others are more optional.

Other changes seem fine.

README.md Outdated

## Analytics

The site uses [iubenda](https://www.iubenda.com/) to manage tracking consent.
Copy link
Contributor

Choose a reason for hiding this comment

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

With cookies removed we can remove this line and all of the iubenda code in the footer

<div class="subfooter">

Copy link
Member

Choose a reason for hiding this comment

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

@copilot Apply this suggestion.

Copy link
Author

Choose a reason for hiding this comment

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

Removed iubenda line from README.md and all iubenda code from footer.html including:

  • Privacy Policy and Cookie Policy links
  • Your Privacy Choices link with CCPA icon
  • Notice at Collection link
  • iubenda.js script loader

Commit: 8e69c47

README.md Outdated

Tracking scripts are loaded via [Google Tag Manager](https://tagmanager.google.com/#/container/accounts/6068072463/containers/116206463/workspaces/9)

Analytics are recorded in [Google Analytics](https://analytics.google.com/analytics/web/#/p373834203/reports/home) and [Heap](https://heapanalytics.com/app/env/4204607514/dashboard/Testcontainers-Overview-278374)
Copy link
Contributor

Choose a reason for hiding this comment

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

Analytics will no longer be recorded. If we want to keep this a link to historical data we can update this line to explain that.

Copy link
Member

Choose a reason for hiding this comment

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

@copilot Apply this suggestion.

Copy link
Author

Choose a reason for hiding this comment

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

Updated the analytics line in README.md to clarify that it links to historical data only, with a note that analytics are no longer being recorded.

Commit: 5a8b6f3

Copy link
Contributor

Choose a reason for hiding this comment

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

With all of the client side reason for this page removed, we could add it to the redirects in netlify.toml. We may also wan't to update the TCC code to not redirect users to this page anymore.

Copy link
Member

Choose a reason for hiding this comment

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

@copilot Apply this suggestion.

Copy link
Author

Choose a reason for hiding this comment

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

Added redirect in netlify.toml to redirect /desktop/authorized/ directly to https://app.testcontainers.cloud/api/auth/login with a 302 status code. This eliminates the need for the client-side redirect page.

Commit: 5a8b6f3

Copilot AI changed the title Remove all Google Tag Manager, cookies, UTM tracking, and analytics from the website Remove all Google Tag Manager, cookies, UTM tracking, analytics, and tracking consent code from the website Oct 24, 2025
Copilot finished work on behalf of kiview October 24, 2025 11:47
Copilot finished work on behalf of kiview October 24, 2025 11:50
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.

3 participants