move analytics code from scripts to skyvern module (#32)

This commit is contained in:
Shuchang Zheng
2024-03-06 19:06:15 -08:00
committed by GitHub
parent 213ef9d325
commit 7085334607
9 changed files with 27 additions and 26 deletions

View File

@@ -3,7 +3,7 @@
# Call function to send telemetry event
log_event() {
if [ -n $1 ]; then
python scripts/tracking.py $1
python skyvern/analytics.py $1
fi
}
@@ -36,7 +36,7 @@ initialize_env_file() {
# Ask for email or generate UUID
read -p "Please enter your email for analytics tracking (press enter to skip): " analytics_id
read -p "Please enter your email for analytics (press enter to skip): " analytics_id
if [ -z "$analytics_id" ]; then
analytics_id=$(uuidgen)
fi
@@ -140,4 +140,4 @@ main() {
}
# Execute main function
main
main