{"version":3,"sources":["webpack:///./src/pages/help/how-to-connect-events-from-google-analytics.js","webpack:///./src/components/Link.js","webpack:///./src/icons/alertIcons.js","webpack:///./src/components/information/index.js"],"names":["related","link","title","description","frontmatter","metaTitle","metaDescription","canonical","Wrapped","Article","color","blank","href","className","inline","role","section","Link","children","additionalProps","target","DevelopersLink","h","props","process","startsWith","defaultProps","warning","width","height","viewBox","fill","xmlns","fillRule","d","clipRule","success","danger","info","cx","cy","r","Alert","styled","div","Text","p","Information","style","filterIcon","Object","entries","icons","filter","icon","undefined"],"mappings":"6FAAA,wIA+DMA,EAAU,CACd,CACEC,KAAM,sCACNC,MAAO,+CACPC,YAAa,6DAEf,CACEF,KAAM,uCACNC,MAAO,mCACPC,YAAa,mEAIJC,EAAc,CACzBC,UAAW,+CACXC,gBAAiB,iEACjBC,UAAW,sDAGPC,EAAUC,aA3EA,WACd,OACE,6BACE,kBAAC,IAAD,0BACA,0PAKA,8GACA,kBAAC,IAAD,CAAaC,MAAM,WAAnB,0CAC0C,IACxC,kBAAC,IAAD,CAAgBC,OAAK,EAACC,KAAK,kCAA3B,SAEkB,IAJpB,kBAOA,kBAAC,IAAD,CAAUC,UAAU,QAApB,uCACA,gFACiD,kBAAC,IAAD,CAAMC,QAAM,GAAZ,kBADjD,sBAEW,sDAFX,sCAIA,kBAAC,IAAD,qpBAyBA,yBAAKD,UAAU,gCAAgCE,KAAK,SAApD,oKAE6E,IAC3E,kBAAC,IAAD,CAAMH,KAAK,4CAAX,gBAHF,SA8BS,4BACb,kBAACJ,EAAD,eAASR,QAASA,EAASgB,QAAQ,YAAYd,MAAOE,EAAYC,WAAeD,M,sHC9E5E,SAASa,EAAT,GAA0C,IAA1BC,EAAyB,EAAzBA,SAAUP,EAAe,EAAfA,MAAOC,EAAQ,EAARA,KAChCO,EAAkB,GAMxB,OAJIR,IACFQ,EAAgBC,OAAS,UAIzB,mCAAGR,KAAMA,GAAUO,GAChBD,GAeA,SAASG,EAAT,GAAuD,IA5B1CC,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E,kBAACZ,EAAD,CAAO7B,UAAWH,EAAOsC,MAAOA,GAC7BC,EAAW,GACZ,kBAACJ,EAAD,KAAO3B,KAWb6B,EAAYrB,aAAe,CACzBsB,WAAOO","file":"component---src-pages-help-how-to-connect-events-from-google-analytics-js-c6651ac36c6bbcf6a395.js","sourcesContent":["import React from 'react';\nimport Article, { SubTitle } from 'components/help/helpArticle';\nimport Code from 'components/help/codeSnippet';\nimport Link from 'components/ui/link';\nimport { DevelopersLink } from '../../components/Link';\nimport { Information } from '../../components/information';\n\nconst Content = () => {\n return (\n
\n How does it work?\n

\n If you have already set up custom events in your Google Analytics account, you can easily\n use them with LiveSession. You can configure LiveSession callback to collect data every time\n the GA tracker sends a custom event.\n

\n

Edit the code below according to your needs to start tracking GA custom events.

\n \n Custom Events are available via JS API.{' '}\n \n Learn\n {' '}\n how to use it.\n \n How can I install this integration?\n \n To install integration, edit your tracking ID (UA-XXXXXXXXX-X) and add\n the code after initializing Google Analytics and LiveSession.\n \n \n {``}\n \n
\n To make this integration works, you need to have Google Analytics and LiveSession installed\n on your website. If you haven't installed our tracking code yet check{' '}\n this article.\n
\n
\n );\n};\n\nconst related = [\n {\n link: '/help/google-analytics-integration/',\n title: 'LiveSession and Google Analytics integration',\n description: 'Send LiveSession recordings as events to Google Analytics',\n },\n {\n link: '/help/how-do-the-custom-events-work/',\n title: 'How does the Custom Events work?',\n description: 'Wondering about the usability of our Custom Events? Read here.',\n },\n];\n\nexport const frontmatter = {\n metaTitle: 'How to connect events from Google Analytics?',\n metaDescription: 'Take a look how to pass Google Analytics events to LiveSession',\n canonical: '/help/how-to-connect-events-from-google-analytics/',\n};\n\nconst Wrapped = Article(Content);\n\nexport default () => (\n \n);\n","import * as React from 'react';\nimport PropTypes from 'prop-types';\n\nfunction hrefHelper(h) {\n return h.startsWith('/') ? h : `/${h}`;\n}\n\nexport function Link({ children, blank, href }) {\n const additionalProps = {};\n\n if (blank) {\n additionalProps.target = '_blank';\n }\n\n return (\n \n {children}\n \n );\n}\n\nLink.propTypes = {\n blank: PropTypes.bool,\n href: PropTypes.string.isRequired,\n children: PropTypes.node.isRequired,\n};\n\nLink.defaultProps = {\n blank: false,\n};\n\nexport function DevelopersLink({ children, href, ...props }) {\n const additionalProps = {\n href: `${process.env.GATSBY_LS_DEVELOPERS_URL}${hrefHelper(href)}`,\n };\n\n return (\n \n {children}\n \n );\n}\n\nDevelopersLink.propTypes = {\n href: PropTypes.string.isRequired,\n children: PropTypes.node.isRequired,\n};\n","import React from 'react';\n\nexport const warning = (\n \n \n \n \n);\nexport const success = (\n \n \n \n \n);\nexport const danger = (\n \n \n \n \n);\nexport const info = (\n \n \n \n \n \n);\n","import React from 'react';\nimport styled from 'styled-components';\n\nimport PropTypes from 'prop-types';\nimport * as icons from '../../icons/alertIcons';\n\nconst Alert = styled.div`\n margin: 1.5rem 0 1rem;\n border-radius: 4px;\n padding: 10px 12px 10px 16px;\n background-color: transparent;\n display: flex;\n align-items: center;\n & svg {\n align-self: center;\n line-height: 100%;\n width: 16px;\n height: 16px;\n }\n &.info {\n background-color: #cce5ff;\n border: 1px solid #b8daff;\n }\n &.success {\n background-color: #d4edda;\n border: 1px solid #c3e6cb;\n }\n &.warning {\n background-color: #fff3cd;\n border: 1px solid #ffeeba;\n }\n &.danger {\n background-color: #f8d7da;\n border: 1px solid #f5c6cb;\n }\n`;\n\nconst Text = styled.p`\n margin: 0 0 0 16px;\n width: fit-content;\n font-weight: 400;\n`;\n\nexport const Information = ({ children, color, style }) => {\n const [filterIcon] = Object.entries(icons).filter((icon) => {\n return icon[0] === color ? icon[1] : null;\n });\n return (\n \n {filterIcon[1]}\n {children}\n \n );\n};\n\nInformation.propTypes = {\n color: PropTypes.string.isRequired,\n children: PropTypes.node.isRequired,\n style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\n};\n\nInformation.defaultProps = {\n style: undefined,\n};\n"],"sourceRoot":""}