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

Script Tag SDK #2156

Merged
merged 13 commits into from Mar 8, 2024
Merged

Script Tag SDK #2156

merged 13 commits into from Mar 8, 2024

Conversation

jdorn
Copy link
Member

@jdorn jdorn commented Feb 25, 2024

Features and Changes

Improvements to Javascript SDK

  • New context.renderer property
  • Wrap calls to renderer in try/catch
  • New updateAttributes method for partial updates

Improvements to Auto Script Tag:

  • Fix gtag/dataLayer event tracking
  • New window.growthbook_queue to run code when the GrowthBook instance is ready
  • New pageTitle attribute
  • Add dataLayer variables as attributes automatically
  • Listen for gb_refresh DOM event to refresh all auto attributes and URL
  • Fire a gb_loaded DOM event when the instance is ready

Other Changes:

  • Dedicated SDK language docs for HTML Script Tag

TODO:

  • Bump SDK version and publish to npm
  • Testing

Copy link

github-actions bot commented Feb 25, 2024

Deploy preview for docs ready!

✅ Preview
https://docs-a29xbcj72-growthbook.vercel.app

Built with commit af070b9.
This pull request is being automatically deployed with vercel-action

@jdorn jdorn marked this pull request as ready for review March 6, 2024 19:44
Copy link

github-actions bot commented Mar 6, 2024

Your preview environment pr-2156-bttf has been deployed with errors.

@jdorn jdorn merged commit cfc6da7 into main Mar 8, 2024
5 of 6 checks passed
@jdorn jdorn deleted the script-tag-sdk branch March 8, 2024 17:21
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.

None yet

1 participant