Skip to content

Add tracked social share buttons#12

Open
ratnesh-maurya wants to merge 1 commit intoinitializ:mainfrom
ratnesh-maurya:main
Open

Add tracked social share buttons#12
ratnesh-maurya wants to merge 1 commit intoinitializ:mainfrom
ratnesh-maurya:main

Conversation

@ratnesh-maurya
Copy link
Copy Markdown
Member

Replace legacy data-forge attributes with explicit button IDs and data-url/data-title attributes, remove unused forgeSlug/shareText/shareUrl variables, and add client-side handlers for X, LinkedIn and Reddit. Introduces buildTrackedUrl() to append a short ref token (ref=share__) to shared URLs for basic tracking, and opens platform share windows with encoded titles/URLs (falling back to window.location.href and document.title).

Replace legacy data-forge attributes with explicit button IDs and data-url/data-title attributes, remove unused forgeSlug/shareText/shareUrl variables, and add client-side handlers for X, LinkedIn and Reddit. Introduces buildTrackedUrl() to append a short ref token (ref=share_<channel>_<token>) to shared URLs for basic tracking, and opens platform share windows with encoded titles/URLs (falling back to window.location.href and document.title).
@ratnesh-maurya
Copy link
Copy Markdown
Member Author

Fixed share behavior for blog posts: X and LinkedIn now use the canonical post URL on useforge.ai (with ?ref=share__) instead of redirecting through go.useforge.ai, so shared links open the actual blog page directly

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.

1 participant