Skip to content

Commit

Permalink
Do not create funnels in seeds when running CE
Browse files Browse the repository at this point in the history
  • Loading branch information
zoldar committed May 29, 2024
1 parent 14fbfc0 commit c79bfb0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions priv/repo/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@ seeded_token = Plausible.Plugins.API.Token.generate("seed-token")
{:ok, _goal5} = Plausible.Goals.create(site, %{"page_path" => Enum.random(long_random_paths)})
{:ok, outbound} = Plausible.Goals.create(site, %{"event_name" => "Outbound Link: Click"})

{:ok, _funnel} =
Plausible.Funnels.create(site, "From homepage to login", [
%{"goal_id" => goal1.id},
%{"goal_id" => goal2.id},
%{"goal_id" => goal3.id}
])
if Plausible.ee?() do
{:ok, _funnel} =
Plausible.Funnels.create(site, "From homepage to login", [
%{"goal_id" => goal1.id},
%{"goal_id" => goal2.id},
%{"goal_id" => goal3.id}
])
end

put_random_time = fn
date, 0 ->
Expand Down

0 comments on commit c79bfb0

Please sign in to comment.