Skip to content

Instantly share code, notes, and snippets.

View elephantsneverforget's full-sized avatar

Jonathan Cairo elephantsneverforget

View GitHub Profile
{
"textPayload": "Hello",
"channelConfig": {
"id": 1169,
"all_markets": true,
"market_groups": [],
"label": "Prototypin",
"live": true,
"debug": true,
"prototypingEnabled": true,
{
"insertId": "66fb100c000ed4dbaaa1192f",
"jsonPayload": {
"client": "vuori-clothing.myshopify.com",
"extra": {
"type": "Sending Event",
"event": {
"data": [
{
"user": {
{
"partialFailureError": {
"code": 3,
// Unfortuneatly it seems only the first error is highlighted.
// To reference the details of each error we'll need to index into the "details" array based on the empty objects noted below
"message": "Multiple errors in ‘details’. First error: The provided user identifiers are not supported. Use only hashed email or phone number and try again., at conversions[0].user_identifiers[0]",
"details": [
{
"@type": "type.googleapis.com/google.ads.googleads.v15.errors.GoogleAdsFailure",
"errors": [
{
"error": {
"message": "(#100) Missing Permission",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "ArwbZb_gDgTYZIONKpgNfmx"
}
}
@elephantsneverforget
elephantsneverforget / meta_sample_payload.json
Created April 16, 2024 20:50
Meta new/returning events with "origin"
{
"data": [
{
"event_name": "Purchase_NewCustomer",
"event_time": 1713300268,
"action_source": "website",
"user_data": {
"em": [
"7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068"
],
export type MixpanelEventPayload = {
event?: string; // event name
properties: {
$source: "elevar";
ip?: string;
token: string; // project token input by user
time: number; // milliseconds since epoch
$insert_id: string | number; // event id,
distinct_id?: string; // user id
$browser?: string;
export type KlaviyoEventPayload = {
data: {
type: "event";
attributes: {
value?: number;
unique_id: string; // event_id
profile: {
// One of email or phone is required on every API call
$email: string;
$first_name?: string;
{
"message": "There were 1 invalid conversion events. None were processed.",
"invalid_events": [
{
"error_message": "there was a problem validating event_type: event_type with custom_event_name must be a Custom event: Purchase",
"event": {
"event_at": "2024-03-26T17:51:01-04:00",
"event_type": {
"tracking_type": "Purchase",
"custom_event_name": "string"
<script type="module">
try {
const settings = {};
const config = (await import("https://shopify-gtm-suite.getelevar.com/configs/41192d94c4af24912cec0b65eb5e29a0b3ba6634/config.js")).default;
const scriptUrl = settings.proxyPath
? `${settings.proxyPath}${config.script_src_custom_pages_proxied}`
: config.script_src_custom_pages;
if (scriptUrl) {
const { handler } = await import(scriptUrl);