analytics/Plausible.Factory.html
2023-12-11 15:45:08 +00:00

1609 lines
47 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.30.3">
<meta name="project" content="Plausible v0.0.1">
<title>Plausible.Factory — Plausible v0.0.1</title>
<link rel="stylesheet" href="dist/html-elixir-P5GXSCHE.css" />
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
<script src="dist/handlebars.templates-NBND3S2D.js"></script>
<script src="dist/sidebar_items-1AED098E.js"></script>
<script src="docs_config.js"></script>
<script async src="dist/html-CGDDOCMI.js"></script>
</head>
<body data-type="modules" class="page-module">
<script>
try {
var settings = JSON.parse(localStorage.getItem('ex_doc:settings') || '{}');
if (settings.theme === 'dark' ||
((settings.theme === 'system' || settings.theme == null) &&
window.matchMedia('(prefers-color-scheme: dark)').matches)
) {
document.body.classList.add('dark')
}
} catch (error) { }
</script>
<div class="main">
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar">
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
</button>
<section class="sidebar">
<form class="sidebar-search" action="search.html">
<button type="submit" class="search-button" aria-label="Submit Search">
<i class="ri-search-2-line" aria-hidden="true" title="Submit search"></i>
</button>
<button type="button" tabindex="-1" class="search-close-button" aria-label="Cancel Search">
<i class="ri-close-line ri-lg" aria-hidden="true" title="Cancel search"></i>
</button>
<label class="search-label">
<p class="sr-only">Search</p>
<input name="q" type="text" class="search-input" placeholder="Search..." aria-label="Input your search terms" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
</label>
</form>
<div class="autocomplete">
<div class="autocomplete-results">
</div>
</div>
<div class="sidebar-header">
<a href="readme.html">
<img src="assets/logo.png" alt="Plausible" class="sidebar-projectImage">
</a>
<div class="sidebar-projectDetails">
<a href="readme.html" class="sidebar-projectName" translate="no">
Plausible
</a>
<div class="sidebar-projectVersion" translate="no">
v0.0.1
</div>
</div>
<ul class="sidebar-listNav">
<li><a id="extras-list-link" href="#full-list">Pages</a></li>
<li><a id="modules-list-link" href="#full-list">Modules</a></li>
<li><a id="tasks-list-link" href="#full-list"><span translate="no">Mix</span> Tasks</a></li>
</ul>
</div>
<div class="gradient"></div>
<ul id="full-list"></ul>
</section>
<section class="content">
<output role="status" id="toast"></output>
<div class="content-outer">
<div id="content" class="content-inner">
<h1>
<button class="icon-action display-settings">
<i class="ri-settings-3-line"></i>
<span class="sr-only">Settings</span>
</button>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L1" title="View Source" class="icon-action" rel="help">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
<span translate="no">Plausible.Factory</span>
<small class="app-vsn" translate="no">(Plausible v0.0.1)</small>
</h1>
<section id="summary" class="details-list">
<h1 class="section-heading">
<a class="hover-link" href="#summary">
<i class="ri-link-m" aria-hidden="true"></i>
Summary
</a>
</h1>
<div class="summary-functions summary">
<h2>
<a href="#functions">Functions</a>
</h2>
<div class="summary-row">
<div class="summary-signature">
<a href="#api_key_factory/0" translate="no">api_key_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#build/2" translate="no">build(factory_name, attrs \\ %{})</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#build_list/3" translate="no">build_list(number_of_records, factory_name, attrs \\ %{})</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#build_pair/2" translate="no">build_pair(factory_name, attrs \\ %{})</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#business_subscription_factory/0" translate="no">business_subscription_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#ch_session_factory/0" translate="no">ch_session_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#create/1" translate="no">create(_)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#create/2" translate="no">create(_, _)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#create_list/3" translate="no">create_list(_, _, _)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#create_pair/2" translate="no">create_pair(_, _)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#enterprise_plan_factory/0" translate="no">enterprise_plan_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#event_factory/0" translate="no">event_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#factory/1" translate="no">factory(factory_name)</a>
</div>
<div class="summary-synopsis"><p>Raises a helpful error if no factory is defined.</p></div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#goal_factory/0" translate="no">goal_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#google_auth_factory/0" translate="no">google_auth_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#growth_subscription_factory/0" translate="no">growth_subscription_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#imported_browsers_factory/0" translate="no">imported_browsers_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#imported_devices_factory/0" translate="no">imported_devices_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#imported_entry_pages_factory/0" translate="no">imported_entry_pages_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#imported_exit_pages_factory/0" translate="no">imported_exit_pages_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#imported_locations_factory/0" translate="no">imported_locations_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#imported_operating_systems_factory/0" translate="no">imported_operating_systems_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#imported_pages_factory/0" translate="no">imported_pages_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#imported_sources_factory/0" translate="no">imported_sources_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#imported_visitors_factory/0" translate="no">imported_visitors_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#insert/1" translate="no">insert(already_built_record)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#insert/2" translate="no">insert(already_built_record, function_opts)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#insert/3" translate="no">insert(factory_name, attrs, opts)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#insert_list/3" translate="no">insert_list(number_of_records, factory_name, attrs \\ %{})</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#insert_list/4" translate="no">insert_list(number_of_records, factory_name, attrs, opts)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#insert_pair/2" translate="no">insert_pair(factory_name, attrs \\ %{})</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#insert_pair/3" translate="no">insert_pair(factory_name, attrs, opts)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#invitation_factory/0" translate="no">invitation_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#monthly_report_factory/0" translate="no">monthly_report_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#pageview_factory/0" translate="no">pageview_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#params_for/2" translate="no">params_for(factory_name, attrs \\ %{})</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#params_with_assocs/2" translate="no">params_with_assocs(factory_name, attrs \\ %{})</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#shared_link_factory/0" translate="no">shared_link_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#site_factory/1" translate="no">site_factory(attrs)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#site_membership_factory/0" translate="no">site_membership_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#spike_notification_factory/0" translate="no">spike_notification_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#string_params_for/2" translate="no">string_params_for(factory_name, attrs \\ %{})</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#string_params_with_assocs/2" translate="no">string_params_with_assocs(factory_name, attrs \\ %{})</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#subscription_factory/0" translate="no">subscription_factory()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#user_factory/1" translate="no">user_factory(attrs)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#weekly_report_factory/0" translate="no">weekly_report_factory()</a>
</div>
</div>
</div>
</section>
<section id="functions" class="details-list">
<h1 class="section-heading">
<a class="hover-link" href="#functions">
<i class="ri-link-m" aria-hidden="true"></i>
Functions
</a>
</h1>
<div class="functions-list">
<section class="detail" id="api_key_factory/0">
<div class="detail-header">
<a href="#api_key_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">api_key_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L162" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="build/2">
<span id="build/1"></span>
<div class="detail-header">
<a href="#build/2" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">build(factory_name, attrs \\ %{})</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="build_list/3">
<span id="build_list/2"></span>
<div class="detail-header">
<a href="#build_list/3" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">build_list(number_of_records, factory_name, attrs \\ %{})</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="build_pair/2">
<span id="build_pair/1"></span>
<div class="detail-header">
<a href="#build_pair/2" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">build_pair(factory_name, attrs \\ %{})</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="business_subscription_factory/0">
<div class="detail-header">
<a href="#business_subscription_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">business_subscription_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L115" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="ch_session_factory/0">
<div class="detail-header">
<a href="#ch_session_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">ch_session_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L53" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="create/1">
<div class="detail-header">
<a href="#create/1" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">create(_)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<div class="specs">
<pre translate="no"><span class="attribute">@spec</span> create(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">no_return</a>()</pre>
</div>
</section>
</section>
<section class="detail" id="create/2">
<div class="detail-header">
<a href="#create/2" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">create(_, _)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<div class="specs">
<pre translate="no"><span class="attribute">@spec</span> create(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">no_return</a>()</pre>
</div>
</section>
</section>
<section class="detail" id="create_list/3">
<div class="detail-header">
<a href="#create_list/3" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">create_list(_, _, _)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<div class="specs">
<pre translate="no"><span class="attribute">@spec</span> create_list(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">no_return</a>()</pre>
</div>
</section>
</section>
<section class="detail" id="create_pair/2">
<div class="detail-header">
<a href="#create_pair/2" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">create_pair(_, _)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<div class="specs">
<pre translate="no"><span class="attribute">@spec</span> create_pair(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">no_return</a>()</pre>
</div>
</section>
</section>
<section class="detail" id="enterprise_plan_factory/0">
<div class="detail-header">
<a href="#enterprise_plan_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">enterprise_plan_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L119" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="event_factory/0">
<div class="detail-header">
<a href="#event_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">event_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L80" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="factory/1">
<div class="detail-header">
<a href="#factory/1" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">factory(factory_name)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L1" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
<div class="specs">
<pre translate="no"><span class="attribute">@spec</span> factory(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">no_return</a>()</pre>
</div>
<p>Raises a helpful error if no factory is defined.</p>
</section>
</section>
<section class="detail" id="goal_factory/0">
<div class="detail-header">
<a href="#goal_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">goal_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L93" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="google_auth_factory/0">
<div class="detail-header">
<a href="#google_auth_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">google_auth_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L130" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="growth_subscription_factory/0">
<div class="detail-header">
<a href="#growth_subscription_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">growth_subscription_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L111" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="imported_browsers_factory/0">
<div class="detail-header">
<a href="#imported_browsers_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">imported_browsers_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L257" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="imported_devices_factory/0">
<div class="detail-header">
<a href="#imported_devices_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">imported_devices_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L245" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="imported_entry_pages_factory/0">
<div class="detail-header">
<a href="#imported_entry_pages_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">imported_entry_pages_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L209" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="imported_exit_pages_factory/0">
<div class="detail-header">
<a href="#imported_exit_pages_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">imported_exit_pages_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L221" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="imported_locations_factory/0">
<div class="detail-header">
<a href="#imported_locations_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">imported_locations_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L231" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="imported_operating_systems_factory/0">
<div class="detail-header">
<a href="#imported_operating_systems_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">imported_operating_systems_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L269" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="imported_pages_factory/0">
<div class="detail-header">
<a href="#imported_pages_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">imported_pages_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L197" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="imported_sources_factory/0">
<div class="detail-header">
<a href="#imported_sources_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">imported_sources_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L185" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="imported_visitors_factory/0">
<div class="detail-header">
<a href="#imported_visitors_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">imported_visitors_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L173" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="insert/1">
<div class="detail-header">
<a href="#insert/1" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">insert(already_built_record)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="insert/2">
<div class="detail-header">
<a href="#insert/2" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">insert(already_built_record, function_opts)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="insert/3">
<div class="detail-header">
<a href="#insert/3" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">insert(factory_name, attrs, opts)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="insert_list/3">
<span id="insert_list/2"></span>
<div class="detail-header">
<a href="#insert_list/3" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">insert_list(number_of_records, factory_name, attrs \\ %{})</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="insert_list/4">
<div class="detail-header">
<a href="#insert_list/4" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">insert_list(number_of_records, factory_name, attrs, opts)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="insert_pair/2">
<span id="insert_pair/1"></span>
<div class="detail-header">
<a href="#insert_pair/2" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">insert_pair(factory_name, attrs \\ %{})</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="insert_pair/3">
<div class="detail-header">
<a href="#insert_pair/3" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">insert_pair(factory_name, attrs, opts)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="invitation_factory/0">
<div class="detail-header">
<a href="#invitation_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">invitation_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L154" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="monthly_report_factory/0">
<div class="detail-header">
<a href="#monthly_report_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">monthly_report_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L143" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="pageview_factory/0">
<div class="detail-header">
<a href="#pageview_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">pageview_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L71" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="params_for/2">
<span id="params_for/1"></span>
<div class="detail-header">
<a href="#params_for/2" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">params_for(factory_name, attrs \\ %{})</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="params_with_assocs/2">
<span id="params_with_assocs/1"></span>
<div class="detail-header">
<a href="#params_with_assocs/2" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">params_with_assocs(factory_name, attrs \\ %{})</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="shared_link_factory/0">
<div class="detail-header">
<a href="#shared_link_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">shared_link_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L147" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="site_factory/1">
<div class="detail-header">
<a href="#site_factory/1" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">site_factory(attrs)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L26" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="site_membership_factory/0">
<div class="detail-header">
<a href="#site_membership_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">site_membership_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L46" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="spike_notification_factory/0">
<div class="detail-header">
<a href="#spike_notification_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">spike_notification_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L20" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="string_params_for/2">
<span id="string_params_for/1"></span>
<div class="detail-header">
<a href="#string_params_for/2" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">string_params_for(factory_name, attrs \\ %{})</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="string_params_with_assocs/2">
<span id="string_params_with_assocs/1"></span>
<div class="detail-header">
<a href="#string_params_with_assocs/2" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">string_params_with_assocs(factory_name, attrs \\ %{})</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L2" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="subscription_factory/0">
<div class="detail-header">
<a href="#subscription_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">subscription_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L97" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="user_factory/1">
<div class="detail-header">
<a href="#user_factory/1" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">user_factory(attrs)</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L6" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
<section class="detail" id="weekly_report_factory/0">
<div class="detail-header">
<a href="#weekly_report_factory/0" class="detail-link" title="Link to this function">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this function</span>
</a>
<h1 class="signature" translate="no">weekly_report_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L139" class="icon-action" rel="help" title="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</section>
</div>
</section>
<footer class="footer">
<p>
<span class="line">
<button class="a-main footer-button display-quick-switch" title="Search HexDocs packages">
Search HexDocs
</button>
<a href="Plausible.epub" title="ePub version">
Download ePub version
</a>
</span>
</p>
<p class="built-using">
Built using
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.30.3) for the
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
</p>
</footer>
</div>
</div>
</section>
</div>
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad: true})</script>
</body>
</html>