Skip to content

STRATCONN-6051 - [Clay] - New Destination #3092

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

Merged
merged 5 commits into from
Jul 29, 2025

Conversation

ayush-goyal
Copy link
Contributor

Created a new partner action for clay. This includes a page event type that sends data to Clay.

Testing

We've tested this locally and with unit tests.

  • Added unit tests for new functionality
  • Tested end-to-end using the local server
  • [If destination is already live] Tested for backward compatibility of destination. Note: New required fields are a breaking change.
  • [Segmenters] Tested in the staging environment
  • [Segmenters] [If applicable for this change] Tested for regression with Hadron.

@ayush-goyal ayush-goyal requested a review from a team as a code owner July 16, 2025 23:03
@joe-ayoub-segment joe-ayoub-segment self-assigned this Jul 17, 2025
@joe-ayoub-segment joe-ayoub-segment changed the title [Clay] Create page action [Clay] - New Destination Jul 17, 2025
@joe-ayoub-segment joe-ayoub-segment changed the title [Clay] - New Destination STRATCONN-6051 - [Clay] - New Destination Jul 17, 2025
@joe-ayoub-segment
Copy link
Contributor

joe-ayoub-segment commented Jul 17, 2025

Thanks for the PR @ayush-goyal .
Looks pretty straightforward / simple.
Can you tell me what the Clay platform does and why you only want to collect page events instead of other analytics data or user profile data?
Also, are you not interested in collecting page name and properties along with the page() events?

@ayush-goyal
Copy link
Contributor Author

Thanks for the review @joe-ayoub-segment . Clay wants to integrate with Segment to allow our customers to ingest page visit data from their site. From this, we want to allow them to track visitor data across different pages and identify high-intent prospects for sales.

Could you please further explain what other analytics data might be helpful for our use case? I thought that Page events was the only one necessary as people navigate a site and these events are emitted.

I've updated the code to collect the page properties as well

@joe-ayoub-segment
Copy link
Contributor

hi @ayush-goyal ,

page() events just track some basic details of each page the customer visits. It doesn't capture the interractions on pages though. track() events capture interactions on web pages, mobile apps and other events from back end services.
There's also identify() events which capture details about users (first_name, last_name, phone, etc).

Usually, Partners will collect track() and identify() at a minimum, and optionally page() and screen().

Happy to discuss in person if you'd like. Here's a Calendly link: https://calendly.com/joe_ayoub/30-minute-workshop

Best regards,
Joe

@ayush-goyal
Copy link
Contributor Author

Thanks for the helpful information on the call today @joe-ayoub-segment , I've made some changes and also included the track event as well. Please take another look when you get a chance

Copy link
Contributor

@joe-ayoub-segment joe-ayoub-segment left a comment

Choose a reason for hiding this comment

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

Looks good to me. Couple of minor comments. I also need to run CI to see if all the tests pass.

@ayush-goyal
Copy link
Contributor Author

Thanks @joe-ayoub-segment , I updated your comments and removed these types instead

@joe-ayoub-segment
Copy link
Contributor

Hi @ayush-goyal the code is good. However the snapshot test is failing.
Running this should fix it:

yarn cloud test --updateSnapshot

Then commit the change.

@ayush-goyal
Copy link
Contributor Author

Thanks @joe-ayoub-segment , I just fixed the failing snapshot test

@ayush-goyal
Copy link
Contributor Author

Thanks @joe-ayoub-segment are you able to merge this PR in? I'm not sure how to fix the failing linter checks

@joe-ayoub-segment
Copy link
Contributor

hi @ayush-goyal the PR is good to go. You can ignore the 2 failing checks. I'll merge if just before I deploy it tomorrow. I'll be in touch once it is live!

@ayush-goyal
Copy link
Contributor Author

@joe-ayoub-segment great, sounds good thanks!

@joe-ayoub-segment joe-ayoub-segment merged commit 673356e into segmentio:main Jul 29, 2025
10 of 12 checks passed
harsh-joshi99 pushed a commit that referenced this pull request Jul 31, 2025
* [Clay] Create page action

* [Clay] Collect page properties

* Add in track event

* Remove type from fields and hardcode

* Fix snapshot test
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.

2 participants