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

Track link variants property when field is added #1517

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

dani-mp
Copy link
Contributor

@dani-mp dani-mp commented Dec 19, 2024

Depends on #1516. Review that one first.

Resolves:
https://linear.app/prismic/issue/DT-2473/aapm-i-can-see-a-property-to-the-event-slice-machine-field-added-type

Description

Checklist

  • A comprehensive Linear ticket, providing sufficient context and details to facilitate the review of the PR, is linked to the PR.
  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

How to QA 1

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

@dani-mp dani-mp requested a review from a team as a code owner December 19, 2024 12:18
Copy link

vercel bot commented Dec 19, 2024

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

Name Status Preview Updated (UTC)
slice-machine ✅ Ready (Inspect) Visit Preview Dec 19, 2024 0:24am

@@ -210,6 +210,7 @@ type FieldAddedSegmentEvent = SegmentEvent<
contentType: "page type" | "custom type" | "slice";
allowText?: boolean;
repeat?: boolean;
variants?: string[];
Copy link
Collaborator

Choose a reason for hiding this comment

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

❓ Interesting, so we can send an array directly to Segment / Amplitude? How does it's translated in Amplitude, as a string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure how it gets in amplitude, but it reaches segment as it should (see debugger screenshot)

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually that's so coooool, I just checked on Amplitude your event!
It allows Côme to say: I want to check all that contain Primary, or those you have exactly Primary and Secondary, etc etc.

Screenshot 2024-12-19 at 19 45 48

Copy link
Contributor Author

Choose a reason for hiding this comment

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

irrc, the page builder team has some weird types for tracking events, only allowing strings

maybe it's because of the proxy we use, idk

but both segment and amplitude allow strings, numbers, arrays, booleans... which could improve a lot our analytics, imo

Base automatically changed from dani/link-variant-10 to dani/link-variant December 19, 2024 18:14
Copy link
Collaborator

@xrutayisire xrutayisire left a comment

Choose a reason for hiding this comment

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

LGTM!

@xrutayisire xrutayisire merged commit 81b2fce into dani/link-variant Dec 19, 2024
33 checks passed
@xrutayisire xrutayisire deleted the dani/link-variant-11 branch December 19, 2024 18:47
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