Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analytics are limited to Action emails only #109

Open
serge005 opened this issue Oct 2, 2024 · 0 comments
Open

Analytics are limited to Action emails only #109

serge005 opened this issue Oct 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@serge005
Copy link

serge005 commented Oct 2, 2024

Campaign links are tracked, but they are not reported in the Analytics dashboard. Only emails that originated from an Action (automation) are reported in Analytics. Is that by design?

The Campaign link click is successfully recorded in the database, but the analytics page only returns emails that have an actionId. Campaign and transactional emails have a NULL actionId and are not returned due to the sql query in ProjectService.ts:

SELECT clicks."link", a."name", count(clicks.id)::int FROM clicks
JOIN emails e on clicks."emailId" = e.id
JOIN actions a on e."actionId" = a.id
WHERE clicks."link" NOT LIKE '%unsubscribe%' AND DATE(clicks."createdAt") BETWEEN DATE(${start}) AND DATE(${end}) AND a."projectId" = ${params.id}
GROUP BY a."name", clicks."link"
@driaug driaug added the enhancement New feature or request label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants