Google Analytics
Com o módulo Google Analytics é possível enviar eventos para uma conta Google Analytics. Para realizar a conexão da integração, siga os passos:
1° - Vá a pagina de integrações do Hyperflow.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FeWMq7fw8bAphnVdAaTOB%252Fintegracao.png%3Falt%3Dmedia%26token%3Db855e7cd-60b5-4a88-b300-522f92afb9d5&width=768&dpr=4&quality=100&sign=b63af737&sv=1)
2° - Selecione a integração Google Analytics, clicando no botão Conectar.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FYkGGuDeY64RTMNgcQV5D%252Fimage.png%3Falt%3Dmedia%26token%3D05d3859a-c62c-4279-996b-0410e08b313b&width=768&dpr=4&quality=100&sign=61f8c1b8&sv=1)
- Campos: a - Alias é o nome personalizado que você pode dar para sua integração. b - ID do cliente é o identificador da sua conta de serviço Google Cloud Plataform. c - ID de medição é o identificador da sua conta na interface do Google Analytics, esse identificador é equivalente á G-0000000. d - Segredo da API é uma chave de API que pode ser encontrada na interface do Google Analytics. ID do cliente: 1 - Crie um projeto no Google Cloud Platform (GCP) e habilite a API do Google Analytics: Acesse o Console de APIs e Serviços do Google Cloud Platform em https://console.cloud.google.com/apis/library. Selecione seu projeto na lista suspensa no canto superior direito da página.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FSn79QlBc7YQFJgO68CmB%252Fimage.png%3Falt%3Dmedia%26token%3Dd7e26e19-7327-4e6e-b89b-6f8af193b43a&width=768&dpr=4&quality=100&sign=29ece195&sv=1)
2 - Na barra de pesquisa, digite "Google Analytics API".
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FLYg0sMacZAANa69ZiNhK%252Fimage.png%3Falt%3Dmedia%26token%3D3962d3c9-537a-47ee-80e0-0833724604df&width=768&dpr=4&quality=100&sign=4c3ea9ba&sv=1)
3 - Selecione Google Analytics API.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252Ff3CFvM0YVbOuQVyzEfG6%252Fimage.png%3Falt%3Dmedia%26token%3Df7599f6b-4fbe-4508-aca5-47707cd09fb2&width=768&dpr=4&quality=100&sign=fed6e20d&sv=1)
4 - Clique em ativar.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FriheP2la9cno1zr8mHQk%252Fimage.png%3Falt%3Dmedia%26token%3D2d370316-da38-49ee-baef-28819c4efe30&width=768&dpr=4&quality=100&sign=1717016b&sv=1)
5 - Selecione a aba Credenciais.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FxXaFrY0VXEiGNb8gQRfx%252Fimage.png%3Falt%3Dmedia%26token%3Db7830c09-3ac8-41f2-bb7b-d61c8387dc4f&width=768&dpr=4&quality=100&sign=703133bb&sv=1)
.6 - Crie uma conta de serviço.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FFl2ZGMBnQQ33ulsW48nX%252Fimage.png%3Falt%3Dmedia%26token%3D24d4ca03-94e2-4f0b-9d2c-8140f1948302&width=768&dpr=4&quality=100&sign=c574cef2&sv=1)
7 - Preencha os dados da conta de serviço.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FzPLbixZ4DnhekmJj4AhR%252Fimage.png%3Falt%3Dmedia%26token%3D3e13ee0c-aa1e-493f-aba2-05a3e2e2cc44&width=768&dpr=4&quality=100&sign=e85b3d67&sv=1)
8 - Em papeis, selecione o papel Proprietário.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FGOkAmXVixo2LpOKZY5G2%252Fimage.png%3Falt%3Dmedia%26token%3D465f98dd-1f21-46a6-8a29-9f35abd55ff5&width=768&dpr=4&quality=100&sign=7092e866&sv=1)
9 - Clique em concluir.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FdHrdErtxNL4nxp3LOn27%252Fimage.png%3Falt%3Dmedia%26token%3Dff1bcf5e-4a44-4677-a9d3-490eb7a89fd2&width=768&dpr=4&quality=100&sign=d052f381&sv=1)
10 - Novamente clique em credenciais e em ID Cliente Oauth.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FStRhnRGnZCDtbQ1f9UDs%252Fimage.png%3Falt%3Dmedia%26token%3D4135693a-4b8a-450b-a521-c93b5db540ee&width=768&dpr=4&quality=100&sign=93ce04a8&sv=1)
11 - Nessa etapa você terá que configurar a tela de consentimento, caso já tenha configurado, pule essa etapa do tutorial.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FwrPVTdOWYWTJzsIqO4jJ%252Fimage.png%3Falt%3Dmedia%26token%3D5d41b225-031c-4be5-96f7-0a6a2dba7bec&width=768&dpr=4&quality=100&sign=fc708ca5&sv=1)
Na tela de configuração de consentimento, selecione a opção externa, avance e preencha os dados obrigatórios com as informações do Aplicativo.
12 - Clique em ADICIONAR OU REMOVER ESCOPOS, filtre por Google Analytics API e selecione todos os escopos.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FGONdFaDVh89ifW4xQFle%252Fimage.png%3Falt%3Dmedia%26token%3Dfd4ff6df-a296-4dd8-a3ca-5cec9c0543c4&width=768&dpr=4&quality=100&sign=af86bb13&sv=1)
Clique em salvar e continuar, e pule a etapa Usuários de Teste.
13 - Finalizado a configuração agora, clique novamente em Credenciais e crie um ID Cliente OAuth.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FhBkATxzLdJpKpO6YwbmX%252Fimage.png%3Falt%3Dmedia%26token%3Def848501-d4ba-4912-992d-b63cc422a3f1&width=768&dpr=4&quality=100&sign=7d69f91f&sv=1)
14 - Em tipo de aplicativo selecione Aplicativo da Web, e preencha o nome do aplicativo, após isso clique em criar.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FCG5TA8B16xAf1ceY04OK%252Fimage.png%3Falt%3Dmedia%26token%3Db70175c5-9fb7-4cee-898c-00ab958c7c29&width=768&dpr=4&quality=100&sign=338c1f78&sv=1)
15 - Pronto! O seu ID do cliente pode ser visualizado na aba Credenciais.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FJOsfIP5QXdpKU2DsPFK1%252Fimage.png%3Falt%3Dmedia%26token%3Db56f60f1-b098-4c40-b6f6-a5ea4a0db5dc&width=768&dpr=4&quality=100&sign=8a1be9bb&sv=1)
ID de medição: 1 - Acesse sua conta Google Analytics em https://analytics.google.com/analytics/web Na aba de pesquisa digite ID de medição, e você verá o identificador.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252F6OORZBRffpGH2IWozfSn%252Fimage.png%3Falt%3Dmedia%26token%3D687fee04-db5c-4896-a646-7c24d541dd7a&width=768&dpr=4&quality=100&sign=634b7538&sv=1)
Esse é seu ID de medição, copie por completo incluindo o G-.
Segredo da API 1 - Vá a aba de administração
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FGoAK5S1Kcd5VZDXuVSKM%252Fimage.png%3Falt%3Dmedia%26token%3Dfdc737c9-c4a1-4916-9063-09e876406dcd&width=768&dpr=4&quality=100&sign=40d999e3&sv=1)
2 - Clique em Fluxo de dados.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252Fvf3nbYEZ3XfVnwkwvZHP%252Fimage.png%3Falt%3Dmedia%26token%3D013d25aa-83e3-4ded-8067-ebb374b84a49&width=768&dpr=4&quality=100&sign=e38bb65a&sv=1)
Nessa etapa você verá todos os seus fluxos de dados criados, crie um caso não tenha clicando no botão Adicionar Fluxo e selecione a opção Web.
3 -Preencha os dados da criação do fluxo e clique em Criar Fluxo.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FkQlcJ0VWvnOsDygTU99a%252Fimage.png%3Falt%3Dmedia%26token%3D9c7c4b77-01c5-46b5-b0e2-e1dab585dd8d&width=768&dpr=4&quality=100&sign=19da8a3a&sv=1)
4 -Na visualização do fluxo, procure por Chaves secretas da API do Measurement Protocol.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FdUutJ5acNBrL0ESZBGOs%252Fimage.png%3Falt%3Dmedia%26token%3Dfd5c5e52-500b-4f02-a19a-a144a976ab48&width=768&dpr=4&quality=100&sign=5709b5a2&sv=1)
5 -Crie uma chave de API.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FOuiDFFejYDMDPkunzKDC%252Fimage.png%3Falt%3Dmedia%26token%3D36547062-13bb-4c2e-961e-6e9c236c4566&width=768&dpr=4&quality=100&sign=ff2b8bbc&sv=1)
6 - Copie o valor do Secret.
![](https://help.hyperflow.global/~gitbook/image?url=https%3A%2F%2F3829578295-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRWteFkm020DS5IbXoSgj%252Fuploads%252FjH6iC0vZKsboxWT8r0vZ%252Fimage.png%3Falt%3Dmedia%26token%3D497bb1f5-209f-43fb-8ae8-e00803d06766&width=768&dpr=4&quality=100&sign=da51f3bd&sv=1)
Last updated