|
|
@@ -66,7 +66,7 @@ const CloudFormationForm: React.FC<Props> = ({
|
|
|
const [hasClickedCloudformationButton, setHasClickedCloudformationButton] = useState(false);
|
|
|
const [showNeedHelpModal, setShowNeedHelpModal] = useState(false);
|
|
|
|
|
|
- const { currentProject } = useContext(Context);
|
|
|
+ const { currentProject, user } = useContext(Context);
|
|
|
const markStepStarted = async (
|
|
|
{
|
|
|
step,
|
|
|
@@ -168,6 +168,18 @@ const CloudFormationForm: React.FC<Props> = ({
|
|
|
}
|
|
|
markStepStarted({ step: "aws-create-integration-success", account_id: AWSAccountID })
|
|
|
proceed(`arn:aws:iam::${AWSAccountID}:role/porter-manager`);
|
|
|
+
|
|
|
+ try {
|
|
|
+ window.dataLayer?.push({
|
|
|
+ event: 'provision-attempt',
|
|
|
+ data: {
|
|
|
+ cloud: 'aws',
|
|
|
+ email: user?.email
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } catch (err) {
|
|
|
+ console.log(err);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const reportFailedCreateAWSIntegration = () => {
|
|
|
@@ -431,4 +443,4 @@ const BackButton = styled.div`
|
|
|
const AWSButtonContainer = styled.div`
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- `;
|
|
|
+ `;
|