Updated events to track user id as IP

This commit is contained in:
Nikhil Nandagopal 2020-09-16 19:51:02 +05:30 committed by GitHub
parent cac15f2cac
commit d028011d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,11 +313,11 @@ bye() { # Prints a friendly good bye message and exits the script.
curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \
--header 'Content-Type: text/plain' \
--data-raw '{
"userId": "'"$email"'",
"userId": "'"$APPSMITH_INSTALLATION_ID"'",
"event": "Installation Support",
"data": {
"os": "'"$os"'",
"instanceId": "'"$APPSMITH_INSTALLATION_ID"'"
"email": "'"$email"'"
}
}'
echo -e "\nExiting for now. Bye! \U1F44B\n"
@ -338,10 +338,10 @@ APPSMITH_INSTALLATION_ID=$(curl -s 'https://api6.ipify.org')
curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \
--header 'Content-Type: text/plain' \
--data-raw '{
"userId": "'"$APPSMITH_INSTALLATION_ID"'",
"event": "Installation Started",
"data": {
"os": "'"$os"'",
"instanceId": "'"$APPSMITH_INSTALLATION_ID"'"
"os": "'"$os"'"
}
}'
@ -475,10 +475,10 @@ if confirm n "Do you have a custom domain that you would like to link? (Only for
curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \
--header 'Content-Type: text/plain' \
--data-raw '{
"userId": "'"$APPSMITH_INSTALLATION_ID"'",
"event": "Installation Custom Domain",
"data": {
"os": "'"$os"'",
"instanceId": "'"$APPSMITH_INSTALLATION_ID"'"
"os": "'"$os"'"
}
}'
echo ""
@ -569,21 +569,21 @@ if [[ $status_code -ne 401 ]]; then
curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \
--header 'Content-Type: text/plain' \
--data-raw '{
"userId": "'"$email"'",
"userId": "'"$APPSMITH_INSTALLATION_ID"'",
"event": "Installation Support",
"data": {
"os": "'"$os"'",
"instanceId": "'"$APPSMITH_INSTALLATION_ID"'"
"email": "'"$email"'"
}
}'
else
curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \
--header 'Content-Type: text/plain' \
--data-raw '{
"userId": "'"$APPSMITH_INSTALLATION_ID"'",
"event": "Installation Success",
"data": {
"os": "'"$os"'",
"instanceId": "'"$APPSMITH_INSTALLATION_ID"'"
"os": "'"$os"'"
}
}'
echo "+++++++++++ SUCCESS ++++++++++++++++++++++++++++++"
@ -604,11 +604,11 @@ else
curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \
--header 'Content-Type: text/plain' \
--data-raw '{
"userId": "'"$email"'",
"userId": "'"$APPSMITH_INSTALLATION_ID"'",
"event": "Identify Successful Installation",
"data": {
"os": "'"$os"'",
"instanceId": "'"$APPSMITH_INSTALLATION_ID"'"
"email": "'"$email"'"
}
}'
fi