{"version":3,"sources":["webpack:///./src/components/help/helpImage/styled.js","webpack:///./src/components/help/helpImage/index.js","webpack:///./src/img/marketplace/googleOptimize/1.png","webpack:///./src/components/ui/image-modal.js","webpack:///./src/img/help/googleOptimize/1.png","webpack:///./src/img/help/integrations/google-optimize.png","webpack:///./src/img/help/googleOptimize/2.png","webpack:///./src/pages/help/google-optimize-integration.js","webpack:///./src/img/help/googleOptimize/3.png"],"names":["Card","styled","div","props","setMarginBottom","media","desktop","CardBody","HelpImage","cardStyle","className","style","defaultProps","module","exports","Container","Box","Close","span","ImageWrapped","img","Image","ImageModal","escFunction","event","showModal","state","keyCode","closeModal","setState","openModal","window","innerWidth","componentDidMount","document","addEventListener","this","componentWillUnmount","removeEventListener","render","src","imgStyle","imgModalStyle","alt","title","lazy","modal","onClick","loading","React","Component","related","frontmatter","metaTitle","metaDescription","canonical","logo","Wrapped","HelpArticle","inline","screen0","role","margin","copy","href","screen1","screen2","screen3","section"],"mappings":"4JAGaA,EAAOC,IAAOC,IAAV,kEAAGD,CAAH,6CACL,SAACE,GAAD,OAAYA,EAAMC,gBAAkB,SAAW,gBAGvDC,IAAMC,SACI,SAACH,GAAD,OAAYA,EAAMC,gBAAkB,YAAc,oBAInDG,EAAWN,IAAOC,IAAV,sEAAGD,CAAH,kDCPfO,EAAY,SAACL,GACjB,IAAQM,EAA+BN,EAA/BM,UAAWL,EAAoBD,EAApBC,gBACnB,OACE,kBAAC,EAAD,CAAaM,UAAU,OAAOC,MAAOF,EAAWL,gBAAiBA,GAC/D,kBAAC,EAAD,CAAiBM,UAAU,YAAYC,MAAOF,GAC5C,kBAAC,IAAeN,MAMTK,MAOfA,EAAUI,aAAe,CACvBH,UAAW,KACXL,iBAAiB,I,qBCzBnBS,EAAOC,QAAU,IAA0B,iD,mFCIrCC,EAAYd,IAAOC,IAAV,6EAAGD,CAAH,gKAaTe,EAAMf,IAAOC,IAAV,uEAAGD,CAAH,4JAYHgB,EAAQhB,IAAOiB,KAAV,yEAAGjB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xB,MAAOQ,EAAYC,WACfD,M,qBC1GRvC,EAAOC,QAAU,IAA0B","file":"component---src-pages-help-google-optimize-integration-js-1f8267d2c2e50514c2d5.js","sourcesContent":["import styled from 'styled-components';\nimport { media } from 'theme/breakpoints';\n\nexport const Card = styled.div`\n margin: ${(props) => (props.setMarginBottom ? '2rem 0' : '2rem 0 3rem')};\n border: none;\n\n ${media.desktop} {\n margin: ${(props) => (props.setMarginBottom ? '1.25rem 0' : '1.25rem 0 2rem')};\n }\n`;\n\nexport const CardBody = styled.div`\n box-shadow: 0px 0px 10px #00000029;\n padding: 0;\n`;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport ImageModal from 'components/ui/image-modal';\nimport * as Styled from './styled';\n\nconst HelpImage = (props) => {\n const { cardStyle, setMarginBottom } = props;\n return (\n \n \n \n \n \n );\n};\n\nexport default HelpImage;\n\nHelpImage.propTypes = {\n cardStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\n setMarginBottom: PropTypes.bool,\n};\n\nHelpImage.defaultProps = {\n cardStyle: null,\n setMarginBottom: false,\n};\n","module.exports = __webpack_public_path__ + \"static/1-0cd1f40d2b6b2a312e88218601c2779a.png\";","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst Container = styled.div`\n top: 0;\n left: 0;\n position: fixed;\n width: 100%;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.4);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 99999;\n`;\n\nconst Box = styled.div`\n background-color: transparent;\n position: relative;\n width: 95vw;\n height: 95vh;\n padding: 1.5rem;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1;\n`;\n\nconst Close = styled.span`\n position: absolute;\n font-size: 1.8rem;\n right: 20px;\n top: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n background-color: #fff;\n border-radius: 100px;\n width: 40px;\n height: 40px;\n padding-bottom: 3px;\n filter: drop-shadow(5px 1px 4px rgba(0, 0, 0, 0.2));\n z-index: 10;\n`;\n\nconst ImageWrapped = styled.img`\n max-width: 100%;\n max-height: 100%;\n display: block;\n margin: 0 auto;\n border: none;\n`;\nconst minWidthToShow = 600;\n\nconst Image = styled.img`\n border: 1px solid #eaebec;\n max-width: 100%;\n height: auto;\n\n @media (min-width: ${minWidthToShow}px) {\n cursor: pointer;\n }\n`;\n\nclass ImageModal extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n showModal: false,\n };\n }\n\n componentDidMount() {\n document.addEventListener('keydown', this.escFunction, false);\n }\n\n componentWillUnmount() {\n document.removeEventListener('keydown', this.escFunction, false);\n }\n\n escFunction = (event) => {\n const { showModal } = this.state;\n\n if (event.keyCode === 27 && showModal) {\n this.closeModal();\n }\n };\n\n closeModal = () => {\n this.setState({ showModal: false });\n };\n\n openModal = () => {\n if (window.innerWidth >= minWidthToShow) {\n this.setState({ showModal: true });\n }\n };\n\n render() {\n const { showModal } = this.state;\n const { src, imgStyle, imgModalStyle, alt, title, lazy } = this.props;\n\n const modal = (\n \n ×\n \n \n \n \n );\n\n return (\n <>\n \n {showModal && modal}\n \n );\n }\n}\n\nexport default ImageModal;\n\nImageModal.propTypes = {\n src: PropTypes.string.isRequired,\n imgStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.node]),\n imgModalStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.node]),\n alt: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n lazy: PropTypes.bool,\n};\n\nImageModal.defaultProps = {\n lazy: false,\n imgStyle: null,\n imgModalStyle: null,\n};\n","module.exports = __webpack_public_path__ + \"static/1-05da3e3b45e793e5681f7e081ba1ce8a.png\";","module.exports = __webpack_public_path__ + \"static/google-optimize-30d22ec111237f28311f806177f9e020.png\";","module.exports = __webpack_public_path__ + \"static/2-c6ad781347cdcaeb2110ffad69949a61.png\";","import React from 'react';\n\nimport { HelpArticle, SubTitle } from 'components/help/helpArticle';\nimport Code from 'components/help/codeSnippet';\nimport Image from 'components/help/helpImage';\nimport Link from 'components/ui/link';\n\nimport screen0 from 'img/marketplace/googleOptimize/1.png';\nimport screen1 from 'img/help/googleOptimize/1.png';\nimport screen2 from 'img/help/googleOptimize/2.png';\nimport screen3 from 'img/help/googleOptimize/3.png';\nimport logo from 'img/help/integrations/google-optimize.png';\n\nconst Content = () => {\n return (\n
\n What is Google Optimize?\n

\n Google Optimize is a tool to learn about your users by running A/B tests. This is crucial to\n understand your visitors and customize website content to improve conversions. LiveSession\n provides this integration to help you add a qualitative context to your A/B tests.\n

\n How does this integration work?\n

\n When you start your A/B test and implement the code below, every new session in LiveSession\n will contain two custom properties: experimentID and{' '}\n variant. You can hover your mouse cursor over properties on the session\n list to preview them.\n

\n \"Google\n

\n Not sure how to filter custom properties? You’ll find a tutorial at the end of this article.\n

\n How to install this integration?\n
\n Before you install this integration, make sure you have prepared (or you’re already running)\n an A/B test in Google Optimize.\n
\n

\n Copy the following code, and paste it into the {''} section of\n your website:\n

\n \n {``}\n \n
\n The script will work only on pages with both the LiveSession tracking code and the Google\n Optimize code. If you haven't installed our tracking code yet, check{' '}\n this article for instructions.\n
\n Filter custom properties\n
    \n
  1. \n

    \n Click Add filter, and then the ‘+’ button:\n

    \n \"Google\n
  2. \n
  3. \n

    \n Choose Custom property and find your property on the list:\n

    \n \"Google\n
  4. \n
  5. \n

    \n Choose a value (e.g., the ID of the experiment) and click on Apply filters:\n

    \n \"Google\n
  6. \n
\n
\n );\n};\n\nconst related = [];\n\nexport const frontmatter = {\n metaTitle: 'LiveSession and Google Optimize integration',\n metaDescription: 'Add A/B test variants as custom properties in LiveSession.',\n canonical: '/help/google-optimize-integration/',\n logo,\n};\n\nconst Wrapped = HelpArticle(Content);\n\nexport default () => (\n \n);\n","module.exports = __webpack_public_path__ + \"static/3-32a155c4c4965b2ac696f8343f367cc5.png\";"],"sourceRoot":""}