analytics/Plausible.Factory.html
2024-07-23 09:06:18 +00:00

1788 lines
52 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.31.1">
<meta name="project" content="Plausible v0.0.1">
<title>Plausible.Factory — Plausible v0.0.1</title>
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
<script src="dist/sidebar_items-58316C0C.js"></script>
<script src="docs_config.js"></script>
<script async src="dist/html-L4O5OK2K.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 id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
</button>
<div class="background-layer"></div>
<nav id="sidebar" class="sidebar">
<div class="sidebar-header">
<div class="sidebar-projectInfo">
<a href="readme.html" class="sidebar-projectImage">
<img src="assets/logo.png" alt="Plausible" />
</a>
<div>
<a href="readme.html" class="sidebar-projectName" translate="no">
Plausible
</a>
<div class="sidebar-projectVersion" translate="no">
v0.0.1
</div>
</div>
</div>
<ul id="sidebar-listNav" class="sidebar-listNav" role="tablist">
<li>
<button id="extras-list-tab-button" role="tab" data-type="extras" aria-controls="extras-tab-panel" aria-selected="true" tabindex="0">
Pages
</button>
</li>
<li>
<button id="modules-list-tab-button" role="tab" data-type="modules" aria-controls="modules-tab-panel" aria-selected="false" tabindex="-1">
Modules
</button>
</li>
<li>
<button id="tasks-list-tab-button" role="tab" data-type="tasks" aria-controls="tasks-tab-panel" aria-selected="false" tabindex="-1">
<span translate="no">Mix</span> Tasks
</button>
</li>
</ul>
</div>
<div id="extras-tab-panel" class="sidebar-tabpanel" role="tabpanel" aria-labelledby="extras-list-tab-button">
<ul id="extras-full-list" class="full-list"></ul>
</div>
<div id="modules-tab-panel" class="sidebar-tabpanel" role="tabpanel" aria-labelledby="modules-list-tab-button" hidden>
<ul id="modules-full-list" class="full-list"></ul>
</div>
<div id="tasks-tab-panel" class="sidebar-tabpanel" role="tabpanel" aria-labelledby="tasks-list-tab-button" hidden>
<ul id="tasks-full-list" class="full-list"></ul>
</div>
</nav>
<main class="content">
<output role="status" id="toast"></output>
<div class="content-outer">
<div id="content" class="content-inner">
<div class="top-search">
<div class="search-settings">
<form class="search-bar" action="search.html">
<label class="search-label">
<span class="sr-only">Search documentation of Plausible</span>
<input name="q" type="text" class="search-input" placeholder="Search Documentation (press /)" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
</label>
<button type="submit" class="search-button" aria-label="Submit Search">
<i class="ri-search-2-line ri-lg" aria-hidden="true" title="Submit search"></i>
</button>
<button type="button" tabindex="-1" class="search-close-button" aria-hidden="true">
<i class="ri-close-line ri-lg" title="Cancel search"></i>
</button>
</form>
<div class="autocomplete">
</div>
<button class="icon-settings display-settings">
<i class="ri-settings-3-line"></i>
<span class="sr-only">Settings</span>
</button>
</div>
</div>
<h1>
<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>
</a>
<span class="text">Summary</span>
</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="#country_rule_factory/0" translate="no">country_rule_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="#drop_notification_factory/0" translate="no">drop_notification_factory()</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_custom_events_factory/0" translate="no">imported_custom_events_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="#ip_rule_factory/0" translate="no">ip_rule_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_import_factory/0" translate="no">site_import_factory()</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>
</a>
<span class="text">Functions</span>
</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#L179" 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#L132" 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#L75" 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="country_rule_factory/0">
<div class="detail-header">
<a href="#country_rule_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">country_rule_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L317" 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="drop_notification_factory/0">
<div class="detail-header">
<a href="#drop_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">drop_notification_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L27" 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="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#L136" 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#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="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#L110" 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#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="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#L128" 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#L285" 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_custom_events_factory/0">
<div class="detail-header">
<a href="#imported_custom_events_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_custom_events_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L248" 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#L273" 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#L226" 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#L238" 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#L259" 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#L297" 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#L214" 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#L202" 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#L190" 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#L171" 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="ip_rule_factory/0">
<div class="detail-header">
<a href="#ip_rule_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">ip_rule_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L309" 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#L160" 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#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="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#L164" 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#L34" 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_import_factory/0">
<div class="detail-header">
<a href="#site_import_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_import_factory()</h1>
<a href="https://github.com/plausible/analytics/blob/main/test/support/factory.ex#L61" 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#L54" 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#L114" 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#L156" 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.31.1) for the
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
</p>
</footer>
</div>
</div>
</main>
</div>
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad: true})</script>
</body>
</html>