Delete test/plausible_web/controllers/api/stats_controller/funnels_test.exs with huggingface_hub
Browse files
test/plausible_web/controllers/api/stats_controller/funnels_test.exs
DELETED
|
@@ -1,428 +0,0 @@
|
|
| 1 |
-
defmodule PlausibleWeb.Api.StatsController.FunnelsTest do
|
| 2 |
-
use PlausibleWeb.ConnCase, async: true
|
| 3 |
-
@moduletag :ee_only
|
| 4 |
-
|
| 5 |
-
on_ee do
|
| 6 |
-
@user_id Enum.random(1000..9999)
|
| 7 |
-
@other_user_id @user_id + 1
|
| 8 |
-
|
| 9 |
-
@build_funnel_with [
|
| 10 |
-
{"page_path", "/blog/announcement"},
|
| 11 |
-
{"event_name", "Signup"},
|
| 12 |
-
{"page_path", "/cart/add/product"},
|
| 13 |
-
{"event_name", "Purchase"}
|
| 14 |
-
]
|
| 15 |
-
|
| 16 |
-
describe "GET /api/stats/funnel - default" do
|
| 17 |
-
setup [:create_user, :log_in, :create_site]
|
| 18 |
-
|
| 19 |
-
test "computes funnel for a day", %{conn: conn, site: site} do
|
| 20 |
-
{:ok, funnel} = setup_funnel(site, @build_funnel_with)
|
| 21 |
-
|
| 22 |
-
populate_stats(site, [
|
| 23 |
-
build(:pageview, pathname: "/some/irrelevant", user_id: 9_999_999),
|
| 24 |
-
build(:pageview, pathname: "/blog/announcement", user_id: @user_id),
|
| 25 |
-
build(:pageview, pathname: "/blog/announcement", user_id: @other_user_id),
|
| 26 |
-
build(:event, name: "Signup", user_id: @user_id),
|
| 27 |
-
build(:event, name: "Signup", user_id: @other_user_id),
|
| 28 |
-
build(:pageview, pathname: "/cart/add/product", user_id: @user_id),
|
| 29 |
-
build(:event, name: "Purchase", user_id: @user_id)
|
| 30 |
-
])
|
| 31 |
-
|
| 32 |
-
resp =
|
| 33 |
-
conn
|
| 34 |
-
|> get("/api/stats/#{site.domain}/funnels/#{funnel.id}/?period=day")
|
| 35 |
-
|> json_response(200)
|
| 36 |
-
|
| 37 |
-
assert %{
|
| 38 |
-
"name" => "Test funnel",
|
| 39 |
-
"all_visitors" => 3,
|
| 40 |
-
"entering_visitors" => 2,
|
| 41 |
-
"entering_visitors_percentage" => "66.67",
|
| 42 |
-
"never_entering_visitors" => 1,
|
| 43 |
-
"never_entering_visitors_percentage" => "33.33",
|
| 44 |
-
"steps" => [
|
| 45 |
-
%{
|
| 46 |
-
"conversion_rate" => "100",
|
| 47 |
-
"conversion_rate_step" => "0",
|
| 48 |
-
"dropoff" => 0,
|
| 49 |
-
"dropoff_percentage" => "0",
|
| 50 |
-
"label" => "Visit /blog/announcement",
|
| 51 |
-
"visitors" => 2
|
| 52 |
-
},
|
| 53 |
-
%{
|
| 54 |
-
"conversion_rate" => "100",
|
| 55 |
-
"conversion_rate_step" => "100",
|
| 56 |
-
"dropoff" => 0,
|
| 57 |
-
"dropoff_percentage" => "0",
|
| 58 |
-
"label" => "Signup",
|
| 59 |
-
"visitors" => 2
|
| 60 |
-
},
|
| 61 |
-
%{
|
| 62 |
-
"conversion_rate" => "50",
|
| 63 |
-
"conversion_rate_step" => "50",
|
| 64 |
-
"dropoff" => 1,
|
| 65 |
-
"dropoff_percentage" => "50",
|
| 66 |
-
"label" => "Visit /cart/add/product",
|
| 67 |
-
"visitors" => 1
|
| 68 |
-
},
|
| 69 |
-
%{
|
| 70 |
-
"conversion_rate" => "50",
|
| 71 |
-
"conversion_rate_step" => "100",
|
| 72 |
-
"dropoff" => 0,
|
| 73 |
-
"dropoff_percentage" => "0",
|
| 74 |
-
"label" => "Purchase",
|
| 75 |
-
"visitors" => 1
|
| 76 |
-
}
|
| 77 |
-
]
|
| 78 |
-
} = resp
|
| 79 |
-
end
|
| 80 |
-
|
| 81 |
-
test "404 for unknown funnel", %{site: site, conn: conn} do
|
| 82 |
-
resp =
|
| 83 |
-
conn
|
| 84 |
-
|> get("/api/stats/#{site.domain}/funnels/122873/?period=day")
|
| 85 |
-
|> json_response(404)
|
| 86 |
-
|
| 87 |
-
assert resp == %{"error" => "Funnel not found"}
|
| 88 |
-
end
|
| 89 |
-
|
| 90 |
-
test "400 for bad funnel ID", %{site: site, conn: conn} do
|
| 91 |
-
resp =
|
| 92 |
-
conn
|
| 93 |
-
|> get("/api/stats/#{site.domain}/funnels/foobar/?period=day")
|
| 94 |
-
|> json_response(400)
|
| 95 |
-
|
| 96 |
-
assert resp == %{"error" => "There was an error with your request"}
|
| 97 |
-
end
|
| 98 |
-
|
| 99 |
-
test "computes all-time funnel with filters", %{conn: conn, user: user} do
|
| 100 |
-
site = new_site(stats_start_date: ~D[2020-01-01], owner: user)
|
| 101 |
-
{:ok, funnel} = setup_funnel(site, @build_funnel_with)
|
| 102 |
-
|
| 103 |
-
populate_stats(site, [
|
| 104 |
-
build(:pageview, pathname: "/blog/announcement", user_id: @user_id),
|
| 105 |
-
build(:pageview,
|
| 106 |
-
pathname: "/blog/announcement",
|
| 107 |
-
user_id: @other_user_id,
|
| 108 |
-
timestamp: ~N[2021-01-01 12:00:00],
|
| 109 |
-
utm_medium: "social"
|
| 110 |
-
),
|
| 111 |
-
build(:event, name: "Signup", user_id: @user_id),
|
| 112 |
-
build(:event,
|
| 113 |
-
name: "Signup",
|
| 114 |
-
user_id: @other_user_id,
|
| 115 |
-
timestamp: ~N[2021-01-01 12:01:00],
|
| 116 |
-
utm_medium: "social"
|
| 117 |
-
),
|
| 118 |
-
build(:pageview, pathname: "/cart/add/product", user_id: @user_id),
|
| 119 |
-
build(:event, name: "Purchase", user_id: @user_id)
|
| 120 |
-
])
|
| 121 |
-
|
| 122 |
-
filters = Jason.encode!([[:is, "visit:utm_medium", ["social"]]])
|
| 123 |
-
|
| 124 |
-
resp =
|
| 125 |
-
conn
|
| 126 |
-
|> get("/api/stats/#{site.domain}/funnels/#{funnel.id}/?period=all&filters=#{filters}")
|
| 127 |
-
|> json_response(200)
|
| 128 |
-
|
| 129 |
-
assert %{
|
| 130 |
-
"name" => "Test funnel",
|
| 131 |
-
"all_visitors" => 1,
|
| 132 |
-
"entering_visitors" => 1,
|
| 133 |
-
"entering_visitors_percentage" => "100",
|
| 134 |
-
"never_entering_visitors" => 0,
|
| 135 |
-
"never_entering_visitors_percentage" => "0",
|
| 136 |
-
"steps" => [
|
| 137 |
-
%{
|
| 138 |
-
"conversion_rate" => "100",
|
| 139 |
-
"conversion_rate_step" => "0",
|
| 140 |
-
"dropoff" => 0,
|
| 141 |
-
"dropoff_percentage" => "0",
|
| 142 |
-
"label" => "Visit /blog/announcement",
|
| 143 |
-
"visitors" => 1
|
| 144 |
-
},
|
| 145 |
-
%{
|
| 146 |
-
"conversion_rate" => "100",
|
| 147 |
-
"conversion_rate_step" => "100",
|
| 148 |
-
"dropoff" => 0,
|
| 149 |
-
"dropoff_percentage" => "0",
|
| 150 |
-
"label" => "Signup",
|
| 151 |
-
"visitors" => 1
|
| 152 |
-
},
|
| 153 |
-
%{
|
| 154 |
-
"conversion_rate" => "0",
|
| 155 |
-
"conversion_rate_step" => "0",
|
| 156 |
-
"dropoff" => 1,
|
| 157 |
-
"dropoff_percentage" => "100",
|
| 158 |
-
"label" => "Visit /cart/add/product",
|
| 159 |
-
"visitors" => 0
|
| 160 |
-
},
|
| 161 |
-
%{
|
| 162 |
-
"conversion_rate" => "0",
|
| 163 |
-
"conversion_rate_step" => "0",
|
| 164 |
-
"dropoff" => 0,
|
| 165 |
-
"dropoff_percentage" => "0",
|
| 166 |
-
"label" => "Purchase",
|
| 167 |
-
"visitors" => 0
|
| 168 |
-
}
|
| 169 |
-
]
|
| 170 |
-
} = resp
|
| 171 |
-
end
|
| 172 |
-
|
| 173 |
-
test "computes an empty funnel", %{conn: conn, site: site} do
|
| 174 |
-
{:ok, funnel} = setup_funnel(site, @build_funnel_with)
|
| 175 |
-
|
| 176 |
-
resp =
|
| 177 |
-
conn
|
| 178 |
-
|> get("/api/stats/#{site.domain}/funnels/#{funnel.id}/?period=day")
|
| 179 |
-
|> json_response(200)
|
| 180 |
-
|
| 181 |
-
assert %{
|
| 182 |
-
"name" => "Test funnel",
|
| 183 |
-
"all_visitors" => 0,
|
| 184 |
-
"entering_visitors" => 0,
|
| 185 |
-
"entering_visitors_percentage" => "0",
|
| 186 |
-
"never_entering_visitors" => 0,
|
| 187 |
-
"never_entering_visitors_percentage" => "0",
|
| 188 |
-
"steps" => [
|
| 189 |
-
%{
|
| 190 |
-
"conversion_rate" => "0",
|
| 191 |
-
"conversion_rate_step" => "0",
|
| 192 |
-
"dropoff" => 0,
|
| 193 |
-
"dropoff_percentage" => "0",
|
| 194 |
-
"label" => "Visit /blog/announcement",
|
| 195 |
-
"visitors" => 0
|
| 196 |
-
},
|
| 197 |
-
%{
|
| 198 |
-
"conversion_rate" => "0",
|
| 199 |
-
"conversion_rate_step" => "0",
|
| 200 |
-
"dropoff" => 0,
|
| 201 |
-
"dropoff_percentage" => "0",
|
| 202 |
-
"label" => "Signup",
|
| 203 |
-
"visitors" => 0
|
| 204 |
-
},
|
| 205 |
-
%{
|
| 206 |
-
"conversion_rate" => "0",
|
| 207 |
-
"conversion_rate_step" => "0",
|
| 208 |
-
"dropoff" => 0,
|
| 209 |
-
"dropoff_percentage" => "0",
|
| 210 |
-
"label" => "Visit /cart/add/product",
|
| 211 |
-
"visitors" => 0
|
| 212 |
-
},
|
| 213 |
-
%{
|
| 214 |
-
"conversion_rate" => "0",
|
| 215 |
-
"conversion_rate_step" => "0",
|
| 216 |
-
"dropoff" => 0,
|
| 217 |
-
"dropoff_percentage" => "0",
|
| 218 |
-
"label" => "Purchase",
|
| 219 |
-
"visitors" => 0
|
| 220 |
-
}
|
| 221 |
-
]
|
| 222 |
-
} = resp
|
| 223 |
-
end
|
| 224 |
-
|
| 225 |
-
test "returns HTTP 402 when site owner is on a growth plan", %{
|
| 226 |
-
conn: conn,
|
| 227 |
-
user: user,
|
| 228 |
-
site: site
|
| 229 |
-
} do
|
| 230 |
-
{:ok, funnel} = setup_funnel(site, @build_funnel_with)
|
| 231 |
-
subscribe_to_growth_plan(user)
|
| 232 |
-
|
| 233 |
-
resp =
|
| 234 |
-
conn
|
| 235 |
-
|> get("/api/stats/#{site.domain}/funnels/#{funnel.id}/?period=day")
|
| 236 |
-
|> json_response(402)
|
| 237 |
-
|
| 238 |
-
assert %{
|
| 239 |
-
"error" =>
|
| 240 |
-
"Funnels and user journeys is part of the Plausible Business plan. To get access to this feature, please upgrade your account."
|
| 241 |
-
} == resp
|
| 242 |
-
end
|
| 243 |
-
end
|
| 244 |
-
|
| 245 |
-
describe "GET /api/stats/funnel - disallowed filters" do
|
| 246 |
-
setup [:create_user, :log_in, :create_site]
|
| 247 |
-
|
| 248 |
-
test "event:page", %{conn: conn, site: site} do
|
| 249 |
-
{:ok, funnel} = setup_funnel(site, @build_funnel_with)
|
| 250 |
-
|
| 251 |
-
filters = Jason.encode!([[:is, "event:page", ["/pageA"]]])
|
| 252 |
-
|
| 253 |
-
resp =
|
| 254 |
-
conn
|
| 255 |
-
|> get("/api/stats/#{site.domain}/funnels/#{funnel.id}/?period=day&filters=#{filters}")
|
| 256 |
-
|> json_response(400)
|
| 257 |
-
|
| 258 |
-
assert resp == %{
|
| 259 |
-
"error" =>
|
| 260 |
-
"We are unable to show funnels when the dashboard is filtered by pages",
|
| 261 |
-
"level" => "normal"
|
| 262 |
-
}
|
| 263 |
-
end
|
| 264 |
-
|
| 265 |
-
test "event:goal", %{conn: conn, site: site} do
|
| 266 |
-
{:ok, funnel} = setup_funnel(site, @build_funnel_with)
|
| 267 |
-
|
| 268 |
-
filters =
|
| 269 |
-
Jason.encode!([[:is, "event:goal", ["Signup"]], [:is, "event:page", ["/pageA"]]])
|
| 270 |
-
|
| 271 |
-
resp =
|
| 272 |
-
conn
|
| 273 |
-
|> get("/api/stats/#{site.domain}/funnels/#{funnel.id}/?period=day&filters=#{filters}")
|
| 274 |
-
|> json_response(400)
|
| 275 |
-
|
| 276 |
-
assert resp == %{
|
| 277 |
-
"error" =>
|
| 278 |
-
"We are unable to show funnels when the dashboard is filtered by goals",
|
| 279 |
-
"level" => "normal"
|
| 280 |
-
}
|
| 281 |
-
end
|
| 282 |
-
|
| 283 |
-
test "period: realtime", %{conn: conn, site: site} do
|
| 284 |
-
{:ok, funnel} = setup_funnel(site, @build_funnel_with)
|
| 285 |
-
|
| 286 |
-
resp =
|
| 287 |
-
conn
|
| 288 |
-
|> get("/api/stats/#{site.domain}/funnels/#{funnel.id}/?period=realtime")
|
| 289 |
-
|> json_response(400)
|
| 290 |
-
|
| 291 |
-
assert resp == %{
|
| 292 |
-
"error" =>
|
| 293 |
-
"We are unable to show funnels when the dashboard is filtered by realtime period",
|
| 294 |
-
"level" => "normal"
|
| 295 |
-
}
|
| 296 |
-
end
|
| 297 |
-
end
|
| 298 |
-
|
| 299 |
-
describe "GET /api/stats/funnel - page scroll goals" do
|
| 300 |
-
setup [:create_user, :log_in, :create_site]
|
| 301 |
-
|
| 302 |
-
test "computes a funnel with page scroll goals", %{conn: conn, site: site} do
|
| 303 |
-
goals = [
|
| 304 |
-
insert(:goal, site: site, event_name: "Onboarding Start"),
|
| 305 |
-
insert(:goal,
|
| 306 |
-
site: site,
|
| 307 |
-
page_path: "/onboard",
|
| 308 |
-
scroll_threshold: 25,
|
| 309 |
-
display_name: "Scroll 25% on /onboard"
|
| 310 |
-
),
|
| 311 |
-
insert(:goal,
|
| 312 |
-
site: site,
|
| 313 |
-
page_path: "/onboard",
|
| 314 |
-
scroll_threshold: 50,
|
| 315 |
-
display_name: "Scroll 50% on /onboard"
|
| 316 |
-
),
|
| 317 |
-
insert(:goal,
|
| 318 |
-
site: site,
|
| 319 |
-
page_path: "/onboard",
|
| 320 |
-
scroll_threshold: 75,
|
| 321 |
-
display_name: "Scroll 75% on /onboard"
|
| 322 |
-
),
|
| 323 |
-
insert(:goal, site: site, page_path: "/onboard-completed")
|
| 324 |
-
]
|
| 325 |
-
|
| 326 |
-
{:ok, funnel} =
|
| 327 |
-
Plausible.Funnels.create(site, "Onboarding", Enum.map(goals, &%{"goal_id" => &1.id}))
|
| 328 |
-
|
| 329 |
-
populate_stats(site, [
|
| 330 |
-
# user 1 - completes the whole funnel
|
| 331 |
-
build(:event, user_id: 1, name: "Onboarding Start", timestamp: ~N[2021-01-01 00:00:00]),
|
| 332 |
-
build(:pageview, user_id: 1, pathname: "/onboard", timestamp: ~N[2021-01-01 00:00:10]),
|
| 333 |
-
build(:engagement,
|
| 334 |
-
user_id: 1,
|
| 335 |
-
pathname: "/onboard",
|
| 336 |
-
scroll_depth: 80,
|
| 337 |
-
timestamp: ~N[2021-01-01 00:00:20]
|
| 338 |
-
),
|
| 339 |
-
build(:pageview,
|
| 340 |
-
user_id: 1,
|
| 341 |
-
pathname: "/onboard-completed",
|
| 342 |
-
timestamp: ~N[2021-01-01 00:00:30]
|
| 343 |
-
),
|
| 344 |
-
# user 2 - drops off after scrolling 25% on /onboard
|
| 345 |
-
build(:event, user_id: 2, name: "Onboarding Start", timestamp: ~N[2021-01-01 00:00:00]),
|
| 346 |
-
build(:pageview, user_id: 2, pathname: "/onboard", timestamp: ~N[2021-01-01 00:00:10]),
|
| 347 |
-
build(:engagement,
|
| 348 |
-
user_id: 2,
|
| 349 |
-
pathname: "/onboard",
|
| 350 |
-
scroll_depth: 25,
|
| 351 |
-
timestamp: ~N[2021-01-01 00:00:20]
|
| 352 |
-
)
|
| 353 |
-
])
|
| 354 |
-
|
| 355 |
-
resp =
|
| 356 |
-
conn
|
| 357 |
-
|> get("/api/stats/#{site.domain}/funnels/#{funnel.id}/?period=day&date=2021-01-01")
|
| 358 |
-
|> json_response(200)
|
| 359 |
-
|
| 360 |
-
assert %{
|
| 361 |
-
"all_visitors" => 2,
|
| 362 |
-
"entering_visitors" => 2,
|
| 363 |
-
"entering_visitors_percentage" => "100",
|
| 364 |
-
"name" => "Onboarding",
|
| 365 |
-
"never_entering_visitors" => 0,
|
| 366 |
-
"never_entering_visitors_percentage" => "0",
|
| 367 |
-
"steps" => [
|
| 368 |
-
%{
|
| 369 |
-
"conversion_rate" => "100",
|
| 370 |
-
"conversion_rate_step" => "0",
|
| 371 |
-
"dropoff" => 0,
|
| 372 |
-
"dropoff_percentage" => "0",
|
| 373 |
-
"label" => "Onboarding Start",
|
| 374 |
-
"visitors" => 2
|
| 375 |
-
},
|
| 376 |
-
%{
|
| 377 |
-
"conversion_rate" => "100",
|
| 378 |
-
"conversion_rate_step" => "100",
|
| 379 |
-
"dropoff" => 0,
|
| 380 |
-
"dropoff_percentage" => "0",
|
| 381 |
-
"label" => "Scroll 25% on /onboard",
|
| 382 |
-
"visitors" => 2
|
| 383 |
-
},
|
| 384 |
-
%{
|
| 385 |
-
"conversion_rate" => "50",
|
| 386 |
-
"conversion_rate_step" => "50",
|
| 387 |
-
"dropoff" => 1,
|
| 388 |
-
"dropoff_percentage" => "50",
|
| 389 |
-
"label" => "Scroll 50% on /onboard",
|
| 390 |
-
"visitors" => 1
|
| 391 |
-
},
|
| 392 |
-
%{
|
| 393 |
-
"conversion_rate" => "50",
|
| 394 |
-
"conversion_rate_step" => "100",
|
| 395 |
-
"dropoff" => 0,
|
| 396 |
-
"dropoff_percentage" => "0",
|
| 397 |
-
"label" => "Scroll 75% on /onboard",
|
| 398 |
-
"visitors" => 1
|
| 399 |
-
},
|
| 400 |
-
%{
|
| 401 |
-
"conversion_rate" => "50",
|
| 402 |
-
"conversion_rate_step" => "100",
|
| 403 |
-
"dropoff" => 0,
|
| 404 |
-
"dropoff_percentage" => "0",
|
| 405 |
-
"label" => "Visit /onboard-completed",
|
| 406 |
-
"visitors" => 1
|
| 407 |
-
}
|
| 408 |
-
]
|
| 409 |
-
} = resp
|
| 410 |
-
end
|
| 411 |
-
end
|
| 412 |
-
|
| 413 |
-
defp setup_goals(site, goals) when is_list(goals) do
|
| 414 |
-
goals =
|
| 415 |
-
Enum.map(goals, fn {type, value} ->
|
| 416 |
-
{:ok, g} = Plausible.Goals.create(site, %{type => value})
|
| 417 |
-
g
|
| 418 |
-
end)
|
| 419 |
-
|
| 420 |
-
{:ok, goals}
|
| 421 |
-
end
|
| 422 |
-
|
| 423 |
-
defp setup_funnel(site, goal_names) do
|
| 424 |
-
{:ok, go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