Skip to content

Commit

Permalink
api: switch shlink_click to using pi-apps.io domain
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Aug 27, 2024
1 parent df16a55 commit 0cc60d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ shlink_link() { #Runs whenever an app is installed/uninstalled to tally the numb
#if the 'Enable Analytics' setting is enabled
if [ "$(cat "${DIRECTORY}/data/settings/Enable analytics")" == 'Yes' ];then
#determine the name of the link to "click"
shlinklink="https://pi-apps-analytics.linkpc.net/pi-apps-$trigger-$(echo "$app" | tr -d ' ' | sed 's/[^a-zA-Z0-9]//g')/track"
shlinklink="https://analytics.pi-apps.io/pi-apps-$trigger-$(echo "$app" | tr -d ' ' | sed 's/[^a-zA-Z0-9]//g')/track"
#click it
curl -s -X 'GET' "$shlinklink" -H 'accept: image/gif' -A "Pi-Apps Raspberry Pi app store" >/dev/null &
fi
Expand Down

0 comments on commit 0cc60d5

Please sign in to comment.