MediaJel / mediajel-tracker

hosted mediajel tracker
4 stars 1 forks source link

Sign up schema changes #468

Closed pacholoamit closed 2 months ago

pacholoamit commented 3 months ago

Description

Make changes to the sign-up schema in here

Definition of Done

pacholoamit commented 3 months ago

Check in snowflake

SELECT * FROM DATA_COLLECTION_DB.SNOWPLOW_INGEST.BASE_EVENTS
WHERE EVENT_NAME = 'sign_up' AND APP_ID='sampleSignup'

Ensure there's a tag in the html page

<script src='https://tags.cnna.io/?appId=sampleSignup&test=true'></script>

Sample Javascript code for Signups


            window.tracker("trackSelfDescribingEvent", {
              schema: "iglu:com.mediajel.events/sign_up/jsonschema/1-0-3",
              data: {
                uuid: transaction.survey_response.id.toString(),
                firstName: first_name,
                lastName: last_name,
                emailAddress: email,
                hashedEmailAddress: email,
                phoneNumber: mobile_number.toString(),
              },
            });

Check the UNSTRUCT column, this will contain the additional properties from the sign up event

jlaridamediajel commented 2 months ago

Image

Seen the changes on snowflake

pacholoamit commented 2 months ago

Next steps:

Check the following tables: