{"componentChunkName":"component---node-modules-rocketseat-gatsby-theme-docs-core-src-templates-docs-query-js","path":"/destinations/streaming-destinations/hubspot/hubspot-cloud-mode/hubspot-new-api-cloud/","result":{"data":{"mdx":{"id":"4c851e1a-9c29-557e-84d0-ef4f10c22ca8","excerpt":"RudderStack supports the following API calls while sending data to Hubspot via  cloud mode  using the  new API . Identify RudderStack sends the  identify  call…","fields":{"slug":"/destinations/streaming-destinations/hubspot/hubspot-cloud-mode/hubspot-new-api-cloud/"},"frontmatter":{"title":"HubSpot Cloud Mode (New API)","description":"Detailed technical documentation on sending events to HubSpot via cloud mode using the new API.","image":null,"disableTableOfContents":null},"body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"HubSpot Cloud Mode (New API)\",\n  \"description\": \"Detailed technical documentation on sending events to HubSpot via cloud mode using the new API.\"\n};\n\nvar makeShortcode = function makeShortcode(name) {\n  return function MDXDefaultShortcode(props) {\n    console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n    return mdx(\"div\", props);\n  };\n};\n\nvar Link = makeShortcode(\"Link\");\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"RudderStack supports the following API calls while sending data to Hubspot via \", mdx(Link, {\n    to: \"/destinations/rudderstack-connection-modes/#cloud-mode\",\n    mdxType: \"Link\"\n  }, \"cloud mode\"), \" using the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://developers.hubspot.com/docs/api/overview\"\n  }, \"new API\"), \".\"), mdx(\"h2\", {\n    \"id\": \"identify\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#identify\",\n    \"aria-label\": \"identify permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Identify\"), mdx(\"p\", null, \"RudderStack sends the \", mdx(Link, {\n    to: \"/event-spec/standard-events/identify\",\n    mdxType: \"Link\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\")), \" call to check if a contact exists, if it does, RudderStack updates the contact with new information. Otherwise, it creates a new contact.\"), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call is as shown:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.identify({\\n  firstName: \\\"Alex\\\",\\n  city: \\\"New Orleans\\\",\\n  country: \\\"USA\\\",\\n  phone: \\\"+1-202-555-0146\\\",\\n  email: \\\"alex@example.com\\\",\\n  custom_flavor: \\\"chocolate\\\",\\n  custom_date: 1574769933368,\\n  custom_date1: new Date(\\\"2019-10-14T11:15:53.296Z\\\"),\\n})\\n\")), mdx(\"p\", null, \"The lookup field passed in the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"HubSpot property name to be used as lookup field\"), \" dashboard setting must also be passed in the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"traits\"), \" object of the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call. For example, if you have passed \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"sampleField\"), \" in the dashboard, you must pass it and its corresponding value in the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call, as shown:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.identify({\\n  firstName: \\\"Alex\\\",\\n  sampleField: \\\"phone\\\",\\n  phone: \\\"+1-202-555-0146\\\"\\n})\\n\")), mdx(\"p\", null, \"If you choose to use the lookup field (\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"sampleField\"), \" in the above example), you can change the lookup value (\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"phone\"), \" in the above example) anytime just by passing the new value in the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call without editing your dashboard setting.\"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"If you pass a lookup field in the dashboard setting but not under the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"identify\"), \" call's \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"traits\"), \", RudderStack  will take \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"email\"), \" as the default lookup field.\"), mdx(\"h2\", {\n    \"id\": \"track\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#track\",\n    \"aria-label\": \"track permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Track\"), mdx(\"p\", null, \"A \", mdx(Link, {\n    to: \"/event-spec/standard-events/track/\",\n    mdxType: \"Link\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\")), \" call lets you record various user actions and any properties associated with them. \"), mdx(\"p\", null, \"To associate a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call with a user, you need to specify the user's \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"email\"), \" under \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"context.traits\"), \". \"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"RudderStack associates the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" events with the same user only after you make a successful \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"identify\"), \" call. However, if you send a \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" call without making any \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"identify\"), \" call first and there is no contact present in HubSpot, RudderStack will not associate the events as there is no identifier.\"), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" event is as shown:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.track(\\n  \\\"Order Completed\\\", {\\n    value: 30,\\n  }, {\\n    context: {\\n      traits: {\\n        firstname: \\\"Alex\\\",\\n        city: \\\"New Orleans\\\",\\n        country: \\\"USA\\\",\\n        phone: \\\"+1-202-555-0146\\\",\\n        email: \\\"alex@example.com\\\",\\n      },\\n    },\\n  }\\n)\\n\")), mdx(\"h3\", {\n    \"id\": \"property-mappings\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#property-mappings\",\n    \"aria-label\": \"property mappings permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Property mappings\"), mdx(\"p\", null, \"The following table lists the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"optional\"), \" properties and their mappings between RudderStack and HubSpot for the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call:\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"RudderStack property\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"HubSpot property\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"traits.utk\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.traits.utk\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.utk\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"utk\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"email\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"email\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.occurred_at\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"originalTimestamp\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"occurredAt\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"traits.objectId\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.traits.objectId\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.objectId\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"objectId\"))))), mdx(\"h3\", {\n    \"id\": \"custom-behavioral-events\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#custom-behavioral-events\",\n    \"aria-label\": \"custom behavioral events permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Custom behavioral events\"), mdx(\"div\", {\n    className: \"warningBlock\"\n  }, \"The custom behavorial events can be used for both the authentication types. However, they must have the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"analytics.behavioral_events.send\"), \" permission to be used for private apps.\"), mdx(\"p\", null, mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://developers.hubspot.com/docs/api/analytics/events\"\n  }, \"Custom behavioral events\"), \" are account-defined events in HubSpot that store event details in the event properties. You can create custom behavioral events and their associated properties in the RudderStack dashboard as explained in the \", mdx(Link, {\n    to: \"/destinations/streaming-destinations/hubspot/setting-up-hubspot-in-rudderstack/#new-api\",\n    mdxType: \"Link\"\n  }, \"New API\"), \" section.\"), mdx(\"p\", null, \"The following parameters are sent in the custom behavorial events:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Identifier\"), \": Either the contact ID, email, or \", mdx(Link, {\n    to: \"https://developers.hubspot.com/docs/api/events/tracking-code\",\n    mdxType: \"Link\"\n  }, \"utk\"), \" (user token) of the contact associated with the event. The utk is the user token stored in the visitor's \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"hubspotutk\"), \" browser cookie.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Event name:\"), \" The internal name of the event which can be found in HubSpot.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Properties object\"), \": When you create a custom behavioral event in HubSpot, some default properties are provided with those events, explained in the below section.\")), mdx(\"h4\", {\n    \"id\": \"property-mappings-1\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h4\",\n    \"href\": \"#property-mappings-1\",\n    \"aria-label\": \"property mappings 1 permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Property mappings\"), mdx(\"p\", null, \"The following table lists the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"optional\"), \" and default property mappings between RudderStack and HubSpot for custom behavioral events:\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"RudderStack property\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"HubSpot property\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.assetDescription\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.hsAssetDescription\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"hs_asset_description\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.assetType\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.hsAssetType\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"hs_asset_type\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.campaignId\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"hs_campaign_id\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"traits.address.city\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.traits.address.city\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.address.city\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"hs_city\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"traits.address.country\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.traits.address.country\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.address.country\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"hs_country\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.device.name\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"hs_device_name\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.elementClass\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.hsElementClass\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"hs_element_class\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.elementId\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"properties.hsElementId\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"hs_element_id\"))))));\n}\n;\nMDXContent.isMDXComponent = true;","headings":[{"depth":2,"value":"Identify"},{"depth":2,"value":"Track"},{"depth":3,"value":"Property mappings"},{"depth":3,"value":"Custom behavioral events"},{"depth":4,"value":"Property mappings"}]}},"pageContext":{"slug":"/destinations/streaming-destinations/hubspot/hubspot-cloud-mode/hubspot-new-api-cloud/","repositoryEditUrl":"","repositoryProvider":""}},"staticQueryHashes":["1745814598","2501019404","3460896660","839945389"]}