Skip to content

utm parameters when linking to tinypng.com - #129

Merged
rkoopmans merged 1 commit into
tinify:masterfrom
wcreateweb:utm-links
Sep 17, 2026
Merged

rkoopmans merged 1 commit into
tinify:masterfrom
wcreateweb:utm-links

Conversation

@tijmenbruggeman

@tijmenbruggeman tijmenbruggeman commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Adding utm parameters to link
utm_source is always wordpress-plugin
utm_medium is always referral
utm_campaign what prompted the link
utm_content is decided by the location of the link

Can close #34 when this is merged

Summary by CodeRabbit

  • Enhancements
    • Added campaign tracking parameters to upgrade, account dashboard, and bulk optimization links.
    • Preserved existing upgrade destinations and encoded account information.
    • Improved URL escaping for upgrade links.

@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Essentials

Run ID: 985287b6-859c-49c4-8ced-25debec02514

📥 Commits

Reviewing files that changed from the base of the PR and between 33eddda and 1e745b1.

📒 Files selected for processing (5)
  • src/class-tiny-notices.php
  • src/views/account-status-connected.php
  • src/views/account-status-create-advanced.php
  • src/views/bulk-optimization-upgrade-notice.php
  • src/views/bulk-optimization.php

Included review availability: 4 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.


📝 Walkthrough

Walkthrough

The change adds UTM tracking parameters to dashboard and upgrade links in account-status and bulk-optimization views. The limit-reached notice also escapes the complete upgrade URL before output.

Changes

Referral tracking

Layer / File(s) Summary
Dashboard referral links
src/views/account-status-connected.php, src/views/account-status-create-advanced.php
Dashboard links now include WordPress plugin referral parameters.
Upgrade referral links
src/class-tiny-notices.php, src/views/account-status-connected.php, src/views/bulk-optimization-upgrade-notice.php, src/views/bulk-optimization.php
Upgrade links now include campaign parameters while preserving existing query values. The limit-reached URL is escaped before output.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 1e745

The referral-link changes preserve existing parameters and add the requested tracking values without an identified merge-blocking issue.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 5 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: adding UTM parameters to links from the WordPress plugin to tinypng.com.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

A rabbit tracks each trail,
UTM tags mark the way,
Upgrade links carry signals,
Dashboard paths stay clear,
Escaped URLs hop safely,
And campaigns bloom today.

Comment @coderabbitai help to get the list of available commands.

@rkoopmans
rkoopmans merged commit c971a16 into tinify:master Sep 17, 2026
9 checks passed
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