We send a triggered email via Discourse to all users when a new topic is posted by an admin in a specific section. I assume some users are unsubscribing from these triggered emails and/or changing their email preferences upon receiving the email.
Is there a way to track the number of unsubscribes?
We were able to use the data explorer plugin to find the users who are no longer watching the category (thanks @pfaffman!). We would also like to find the users who unsubscribe by clicking on “To unsubscribe from these emails, click here” and then selecting “Don’t send me any mail from Squarespace Circle Forum”
Do you have any insight on the best way to query the results for the don’t send me any mail folks?
제 2번 항목에 대해 약간 도움이 될 수 있도록 해당 쿼리를 확장했습니다. 아마도 가장 최근에 구독을 해지한 사용자들을 추론하고 파악할 수 있습니다:
-- 부정적인 이메일 설정을 가진 사용자를 나열하고 그들의 TL, 활동 날짜, Cheers를 포함합니다
SELECT u.ID "User ID"
,u.USERNAME "Username"
,u.trust_level "TL"
-- 다음 줄은 Gamification 플러그인에서 제공하는 전체 기간 Cheers 점수를 선택적으로 포함합니다. 아래 두 번째 join을 참조하세요.
,di.gamification_score "Cheers"
,CAST (u.first_seen_at AS DATE) "Joined"
,CAST (u.last_seen_at AS DATE) "Seen"
,CAST (u.last_emailed_at AS DATE) "Mailed"
,CASE uo.email_digests
WHEN 't' THEN 'Yes'
WHEN 'f' THEN 'NO'
ELSE 'Not set'
END "Digests?"
,CASE uo.email_level
WHEN 0 THEN 'NEVER'
WHEN 1 THEN 'Away'
WHEN 2 THEN 'Always'
END "Email lev"
,CASE uo.email_messages_level
WHEN 0 THEN 'NEVER'
WHEN 1 THEN 'Away'
WHEN 2 THEN 'Always'
END "Email msg lev"
FROM USERS u
LEFT OUTER JOIN USER_OPTIONS uo
ON u.ID = uo.USER_ID
-- 이 두 번째 join은 Gamification 플러그인에서 제공하는 전체 기간 Cheers 점수를 포함합니다
LEFT OUTER JOIN directory_items di
ON u.ID = di.USER_ID AND di.period_type = 1
-- 다음 SELECT 문을 사용하여 토픽 활동 이메일을 받지 않는 사용자를 나열하세요
WHERE uo.email_digests = 'f' OR (uo.email_level = 0)
-- 또는 다음 SELECT 문을 사용하여 토픽 활동 이메일과 메시지 활동 이메일을 모두 받지 않는 사용자를 나열하세요
-- WHERE uo.email_digests = 'f' OR (uo.email_level = 0 AND uo.email_messages_level = 0)
AND u.ID <> -1
ORDER BY u.last_emailed_at DESC
…하지만 구독 해지 요청에 대한 날짜와 세부 정보가 없으므로 명확한 그림을 그릴 수 없습니다.
기본적으로 제가 찾고 있는 것은 다음과 같습니다: 어떤 종류의 이메일이 구독 해지를 유발했는가; Digest에서 해지한 것인가 모든 것에서 해지한 것인가; 해지한 사용자가 흥미를 잃었을 수 있는 활동적인 장기 사용자였는가, 아니면 처음부터 그렇게 관심이 없었던 비활동적인 TL0 사용자였는가?