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

Ako/ CRO-724/ Pass growthbook attributes on initialisation #16713

Conversation

ali-hosseini-deriv
Copy link
Member

@ali-hosseini-deriv ali-hosseini-deriv commented Sep 3, 2024

Changes:

This is to ensure we initialise the rudderstack and growthbook at the same time. which will fix the Growthbook Experiments issue.
We also dont need to pass the country location from initialise function anymore as it will picked up automatically on analytics package.

Copy link

vercel bot commented Sep 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Sep 4, 2024 8:45am

@ali-hosseini-deriv ali-hosseini-deriv changed the title Ako/ CRO-724 Use analytics v1.14 Ako/ CRO-724/ Use analytics v1.14 Sep 3, 2024
Copy link
Contributor

github-actions bot commented Sep 3, 2024

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/16713](https://github.com/binary-com/deriv-app/pull/16713)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-ali-hosseini-deriv-ako-cro-724use-ana-aaa8a1.binary.sx?qa_server=red.derivws.com&app_id=23880
    - **Original**: https://deriv-app-git-fork-ali-hosseini-deriv-ako-cro-724use-ana-aaa8a1.binary.sx
- **App ID**: `23880`

Copy link
Contributor

github-actions bot commented Sep 3, 2024

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 31
🟧 Accessibility 70
🟢 Best practices 92
🟧 SEO 77
🟧 PWA 78

Lighthouse ran with https://deriv-app-git-fork-ali-hosseini-deriv-ako-cro-724use-ana-aaa8a1.binary.sx/

amam-deriv
amam-deriv previously approved these changes Sep 3, 2024
Copy link

@amam-deriv amam-deriv left a comment

Choose a reason for hiding this comment

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

Neat!

@@ -1,5 +1,5 @@
import { Analytics } from '@deriv-com/analytics';
import Cookies from 'js-cookie';
import * as Cookies from 'js-cookie';

Choose a reason for hiding this comment

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

[Q] do we use all?

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually Not needed. let me remove it

@ali-hosseini-deriv ali-hosseini-deriv changed the title Ako/ CRO-724/ Use analytics v1.14 Ako/ CRO-724/ Use analytics v1.15 Sep 3, 2024
@ali-hosseini-deriv ali-hosseini-deriv changed the title Ako/ CRO-724/ Use analytics v1.15 Ako/ CRO-724/ Use analytics pass the growthbook attributes on initialisation Sep 3, 2024
@ali-hosseini-deriv ali-hosseini-deriv changed the title Ako/ CRO-724/ Use analytics pass the growthbook attributes on initialisation Ako/ CRO-724/ Pass growthbook attributes on initialisation Sep 3, 2024
sandeep-deriv
sandeep-deriv previously approved these changes Sep 4, 2024
Copy link

sonarcloud bot commented Sep 4, 2024

@rupato-deriv rupato-deriv merged commit d3b3292 into binary-com:master Sep 6, 2024
8 checks passed
rupato-deriv pushed a commit that referenced this pull request Sep 6, 2024
* build: update analytics to ver 1.13.0

* build: update to version 1.14

* feat: add user_id only if its available

* test: fix analytics test cases

* feat: pass the attributes on GB initialisation

* build: match the js-cookie types with the package version

* fix: remove country property as its built in to the analytics package

* build: update to 1.15.0 to also include changes for the new location implementation

* chore: revert the icons file changes

* Revert "build: update to 1.15.0 to also include changes for the new location implementation"

This reverts commit 67445cb.

* Revert "fix: remove country property as its built in to the analytics package"

This reverts commit e8dcc9e.

* chore: change import statement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants