Hey, gang! I’m trying to track Page Views on HubSp...
# support
s
Hey, gang! I’m trying to track Page Views on HubSpot via the JS library through Rudderstack, but for the life of me I cannot find any documentation on how to do that. I’ve tried using the .track call (as I see you only support identify and track for HubSpot), but I kept getting Bad Request errors. Can you please help me?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
q
Can you share the email associated with your workspace and the payload that you are sending via track call
k
@swift-address-33159, are you using cloud mode or device mode ?
s
Email:
<mailto:dan@thecashkings.com.au|dan@thecashkings.com.au>
Example Payload:
Copy code
{
  "type": "track",
  "event": "Page view",
  "sentAt": "2023-05-22T12:47:31.058Z",
  "userId": "<mailto:dan@thecashkings.com.au|dan@thecashkings.com.au>",
  "channel": "web",
  "context": {
    "os": {
      "name": "",
      "version": ""
    },
    "app": {
      "name": "RudderLabs JavaScript SDK",
      "version": "2.33.1",
      "namespace": "com.rudderlabs.javascript"
    },
    "page": {
      "url": "<https://imperialwealth.com/app>",
      "path": "/app",
      "title": "Imperial Wealth | Wealth, made simple! | Imperial Wealth",
      "search": "",
      "tab_url": "<http://localhost:3000/app>",
      "referrer": "<http://localhost:3000/app/forex>",
      "initial_referrer": "<http://localhost:3000/app/forex>",
      "referring_domain": "localhost:3000",
      "initial_referring_domain": "localhost:3000"
    },
    "locale": "en-US",
    "screen": {
      "width": 3008,
      "height": 1253,
      "density": 1.340000033378601,
      "innerWidth": 1112,
      "innerHeight": 1395
    },
    "traits": {
      "email": "<mailto:dan@thecashkings.com.au|dan@thecashkings.com.au>"
    },
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "2.33.1"
    },
    "campaign": {},
    "sessionId": 1684758561506,
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
  },
  "rudderId": "8d0cf192-759c-4532-87c7-380e08b63c50",
  "messageId": "6aae84c1-6f3f-4a97-9b93-55ed96a8fcc4",
  "timestamp": "2023-05-22T12:47:31.416Z",
  "properties": {},
  "receivedAt": "2023-05-22T12:47:31.418Z",
  "request_ip": "103.15.150.187",
  "anonymousId": "271761c3-108e-449a-8c88-41949f093156",
  "integrations": {
    "All": true
  },
  "originalTimestamp": "2023-05-22T12:47:31.056Z"
}
Payload Error:
Copy code
{
  "response": "'page view' event name not found",
  "firstAttemptedAt": "2023-05-22T12:47:36.574Z",
  "content-type": ""
}
Please note that I’ve tried Page View, Page view and just a plain
.track()
call. We are currently using API v3 in Cloud Mode through the Private App method.
@kind-carpenter-27609 @quiet-wolf-72320 any update?
@kind-carpenter-27609 @quiet-wolf-72320 Any update?
👀 1
q
.page()
call is not supported for HubSpot. Only
identify
and
track
calls are supported.
{“response”:“‘page view’ event name not found”,“firstAttemptedAt”“2023 05 22T124736.574Z”,“content type”“”}
Are you getting this error when sending the event via
track
call?
“Page View” is a custom event that you are sending to HubSpot, did you try creating a mapping in the destination configuration and mapping it to the appropriate Hubspot event name?
s
Hi, @quiet-wolf-72320. We were getting these errors when using the
track
and the
.page()
calls. I have not setup the mapping. Is there documentation for this?
Ping @quiet-wolf-72320 @kind-carpenter-27609