Gridsome和Hubspot页面跟踪器集成

问题描述 投票:1回答:1

我是一名初学者,最近开始接触客户。有人要求我将我创建的当前网站与hubspot页面跟踪器集成。

我已经检查了他们的开发人员页面,并且没有提供有关整体网格而不是SPA的特定说明。

我不知道在哪里嵌入提供的代码。

https://developers.hubspot.com/docs/api-/events/tracking-code

我的应用程序是SPA,我正在使用gridsome。

我的项目可以在https://github.com/chs242/ezras-nashim找到

我很失落。如果有人可以抽出一点时间来帮助我,我将非常感谢

问候

api vue.js content-management-system hubspot gridsome
1个回答
0
投票

要嵌入代码,请在xxxxxxx中添加HubSpot脚本(用您的HubId替换src/main.js:]

export default function (Vue, { router, head, isClient }) {
  Vue.component('Layout', DefaultLayout)

  head.script.push({
    src: 'https://js.hs-scripts.com/xxxxxxx.js',
    body: true
  })
}
© www.soinside.com 2019 - 2024. All rights reserved.