This study aims to investigate the impact of elections on social media adoption by local governments.
Local elections between 2007 and 2018, all 308 Portuguese municipalities and all 43 districts of the Lima metropolitan area (the capital city of Peru) were considered in the study. The impact of elections on each country was assessed by fitting a theoretical model to the social media adoption data (collected for Facebook, YouTube and Twitter). This theoretical model includes a normal curve (as predicted by the Diffusion of Innovation Theory) and negative exponential curves centered on the inauguration dates of the newly elected governments.
Results are impressive and consistent for both countries: following an initial period characterized by a normal adoption curve, there are notable surges in adoption associated with the inauguration dates of newly elected administrations. In a metaphorical sense, ballots make new waves of adoption.
The findings suggest that researchers should take into account the influence of elections when examining how local governments adopt innovations.
The findings indicate that practitioners may find an opportunity to expedite the adoption of innovative communication technologies right after newly elected governments assume office. Additionally, election campaigns present a favorable occasion to demonstrate these innovations.
This is the first study to use non-linear optimizing techniques to explain the impact of elections on social media adoption by local governments.
1. Introduction
Social media can be defined as “a group of Internet-based applications that build on the ideological and technological foundations of Web 2.0, and that allow the creation and exchange of user generated content” (Kaplan and Haenlein, 2010, p. 61). It encompasses social networking platforms such as Facebook, Myspace and LinkedIn, as well as media sharing services such as YouTube and Instagram and micro-blogging tools like Twitter. These applications have significantly transformed the manner in which individuals engage with one another, leading to a situation where social interactions are predominantly facilitated through technological means. The same applications “facilitate social interaction, make possible collaboration, and enable deliberation across stakeholders” (Bryer and Zavattaro, 2011, p. 327). In public organizations, social media applications contribute to increasing transparency, quality of policymaking and the provision of services, as well as creating greater involvement, allowing the public to contribute to the production of content, participate democratically and generate crowdsourcing solutions and innovations (Santoso et al., 2020).
Local governments present a compelling subject for social media research within the realm of governance due to their close relationship with citizens and the direct impact of their decisions on the community (Santoso et al., 2020). By leveraging social media platforms, local governments can engage citizens in a cost-efficient manner, thereby improving public relations, enhancing accountability and transparency and fostering collective problem-solving in the development of policies (Stone and Can, 2020).
Since the political process is highly based on social interaction, social media has the potential to boost citizen involvement in politics through communication, discussion and coordination of public and social activities (Criado et al., 2013; Sandoval-Almazan and Gil-Garcia, 2013). On one side, it has transformed the methods by which political campaigns are executed, the means through which politicians acquire and disseminate political information, the manner in which politics is learned, the modes of opinions and attitudes formation and the ways in which individuals engage with or withdraw from the political process (Dimitrova and Matthes, 2018). On the other hand, it can be used to streamline communication between citizens and governments. Certain scholars argue that it has the potential to enhance civic participation (Bonsón et al., 2017), promote transparency within government operations (Song and Lee, 2016), rebuild public trust in governmental institutions (Warren et al., 2014) and in general “close the gap between citizens and politicians” (Silva et al., 2019). Today, traditional mass media and government’s own communication channels are “insufficient to reach all target audiences, convey important public messages, and build meaningful and trustworthy relationships with certain citizens”, especially young citizens (Zumofen and Mabillard, 2024, p. 5).
Some of the factors that have been used to explain social media adoption by local governments are clearly related to the political sphere: ideology divide (Frías-Aceituno et al., 2014; Jans et al., 2016; Megdaglia, 2007; Panagiotopoulos et al., 2012), political competition (Silva et al., 2019; Faber et al., 2020) and political discontinuity (Silva et al., 2019). What makes these factors particularly intriguing is their potential to be affected by elections. On the one hand, the electoral process can contribute to strengthening or weakening political competition (Fisher and Denver, 2009; Sudulich et al., 2013). On the other hand, elections can lead to shifts in power dynamics, fostering political discontinuity and prompting a reorientation of governmental ideology (Fisher et al., 2011; Gschwend and Zittel, 2015). However, the direct impact of elections on the adoption of social media by local governments has not been studied before. This article aims to bridge this research gap by answering a simple yet very relevant research question: Do elections have an impact on social media adoption by local governments?
But as well as filling a research gap, a positive answer to this research question has the potential to contribute to both theory and practice. The contribution to theory is simple: a new model for the adoption of social media by local authorities, which considers the impact of elections, can be established. As far as practice is concerned, it will show that elections may be used to accelerate the adoption of innovations related to new communication technologies in local government. Furthermore, the study makes a methodological contribution by being the first to use non-linear optimization techniques to explain the impact of elections on the adoption of social networks by local governments.
The cases of Portugal and Peru were examined to answer the research question. This selection was made due to the shared characteristics between the two countries that are pertinent to the analysis, despite their significantly different contexts, which is important for the cross-validation of results. Portugal represents a high-income, developed nation in Europe, whereas Peru is classified as a middle-income, developing country in South America. Both countries have direct elections for local governments, hold all local elections simultaneously and are ranked in the top half of the UN E-Participation Index (United Nations, 2020). It was not possible to find or collect data for a low-income, underdeveloped country with equivalent electoral circumstances. The study includes every one of the 308 Portuguese municipalities and all 35 districts of metropolitan Lima, the capital city of Peru.
The subsequent sections of this article are structured as follows: Section 2 focuses on theory and the development hypotheses; Section 3 introduces the data and methodologies employed in the study; Section 4 presents the results; Section 5 discusses the significance of the results along with the study’s limitations and Section 6 concludes with the implications of the study for both research and practice, as well as suggestions for future work.
2. Theory and hypotheses development
The increasing use of social media by local governments appears to be a global trend. In 2012, 17% of local governments within the European Union maintained an official Facebook page, 32% had an official Twitter account and 29% had an official YouTube channel (Bonsón et al., 2012). In 2016, 95.9% of municipalities of Spain with more than 50,000 inhabitants used Twitter and Facebook, and 82.8% used YouTube (Criado et al., 2018). In 2018, over 90% of municipalities in the Netherlands engaged with various social media platforms, with Twitter emerging as the most frequently used (Faber et al., 2020). This wide dissemination has also been reported across other regions of the globe, including the United States (Mossberger et al., 2013; Reddick and Norris, 2013; Oliveira and Welch, 2013); China (Schlæger and Jiang, 2014), Brazil (Brazilian Internet Steering Committee – CGI, 2018) and Indonesia (Budi et al., 2020).
The extensive adoption of social media by local governments has captured the attention of researchers. This phenomenon has been examined from various perspectives, including use (e.g. Abdelsalam et al., 2013; Agostino and Arnaboldi, 2016; Bennett and Manoharan, 2017; Criado et al., 2019; Ellison and Hardey, 2014; Graham and Avery, 2013; Panagiotopoulos et al., 2014; Svidroňová et al., 2018), objectives of use (Oliveira and Welch, 2013), effects of use (Banghui et al., 2020; Ellison and Hardey, 2014; Lovari and Materassi, 2021), key factors (e.g. Guillamón et al., 2016; Lameiras et al., 2018; Padeiro et al., 2021), direction of interaction flows (Sáez Martín et al., 2015), benefits compared to traditional communication channels (Hofmann et al., 2013) and citizen engagement (Agostino, 2013). Studies were also carried out on the contribution of social media to boost communication and dialogue with citizens and to improve their satisfaction and commitment (Bonsón et al., 2017; Bonsón and Bednárová, 2018; Bonsón and Ratkai, 2013; Haro de Rosario et al., 2018; Wattal et al., 2010) and to enhance the efficiency of local governments by building communities that engage citizens and encourage them to seek civic improvements (Cole, 2009; Nabatchi and Mergel, 2010).
Despite the existence of these studies, there is a lack of theoretical models specifically designed to elucidate the adoption of social media by local governments. Based on the Australian case, Sharif et al. (2015) contributed to such a model by identifying a set of determinants of adoption, such as community demand, bandwagon pressure and faddishness (environmental determinants); management drive, social media policies and degree of formalization (organizational determinants) and perceived benefits, perceived risk and compatibility (technological determinants). Finding more generic models requires turning to broader areas of study such as local e-government adoption and diffusion of technological innovations.
As for determinants of adoption, we have resorted to local e-government and to the empirical model proposed by Dias (2020). This model classifies the determinants of adoption into four categories: internal determinants (size of local government, financial capacity, management capacity, technical capacity, leadership, organizational form and culture and experience); local socioeconomic determinants (demography, socio-economic dynamism and Internet use), local political determinants (political orientation, political environment and citizen participation) and other environmental determinants (laws, regulations and directives and stakeholders’ pressure). Considering our objectives, the local political determinants are the most relevant. Their validity for the specific case of social media has been confirmed by several independent studies, including political orientation (Frías-Aceituno et al., 2014; Jans et al., 2016; Megdaglia, 2007; Panagiotopoulos et al., 2012), political environment (Silva et al., 2019; Faber et al., 2020) and citizen participation (Oliveira and Welch, 2013; Guillamón et al., 2016). Additional determinants include sociodemographic characteristics (gender and academic level) of the mayor (Raimo et al., 2024).
Concerning the pace of adoption, we have resorted to the Diffusion of Innovation (DOI) Theory (Rogers, 2003). This theory aims to explain how a new idea, behavior or product (innovation) gains momentum and disseminates (diffuses) within a specific population or social system. According to this theory, the adoption of innovations over time follows a Gaussian distribution (commonly known as normal or bell-shaped curve). Consequently, in principle, the quantity of new adopters gradually begins to increase over time, as certain innovators embrace the new technology. This growth then accelerates as the technology is progressively adopted by early adopters and the early majority. After a peak is reached (which theoretically coincides with an adoption rate of 50%), influx of new adopters gradually diminishes over time, as the technology continues to be embraced by the late majority and laggards (see Figure 1).
The DOI Theory has been used in prior research to elucidate the adoption of social media by politicians during general elections (Gulati and Williams, 2013). This aligns with the observation made by Mergel and Bretschneider (2013) that social media applications are gradually permeating all tiers of government. The authors propose that the integration of social media within organizations occurs through a three-phase process: first, engaging in informal experimentation with social media beyond established technology usage policies; second, acknowledging the necessity to develop norms and regulations and third, explicitly defining acceptable behaviors, interaction types and innovative communication methods, which are then formalized into social media strategies and policies.
The validity of the DOI Theory to analyze local e-government has previously been defended by Dias (2020). Moreover, its applicability to social media adoption by local governments has previously been tested in Ecuador (Dias et al., 2019). Another indicator that the DOI Theory can be applied to local e-government is that some determinants of organizational innovativeness predicted by that theory, such as size of the organization, organizational slack, complexity, existence of a champion, centralization and formalization, have also been found relevant for local e-government adoption and use (Dias, 2020). In the context of social media, similar trends were observed concerning factors associated with the size of the municipality (Guillamón et al., 2016; Silva et al., 2019; Stone and Can, 2019; Svobodova et al., 2020) as well as organizational slack (Guillamón et al., 2016; Gesuele, 2016).
According to the DOI theory (Rogers, 2003), the trajectory of social media adoption by local governments is expected to progress steadily, as the concept gradually spreads throughout the social system, ultimately leading to a Gaussian distribution. However, considering our research question, if an election results in a significant number of adoptions occurring simultaneously, a noticeable spike should appear on the adoption curve. In essence, if elections have an impact on adoption, then the (typically linear) curve of adoption should show peaks (non-linear distortions) associated with the occurrence of elections.
Taking this into account, we proposed two hypotheses for the study:
The curve of social media adoption by Portuguese municipalities exhibits non-linear distortions (spikes) associated with the occurrence of local elections.
The curve of social media adoption by Lima districts exhibits non-linear distortions (spikes) associated with the occurrence of local elections.
3. Methods
This study follows a quantitative deductive approach to perform two within case longitudinal analyses. The previous subsection formulates the hypotheses of the study by resorting to theory and available literature. This section describes the data and the methods used to test the hypotheses.
3.1 Data collection
This research relies on data gathered from both primary and secondary sources. The primary data encompasses the adoption dates of three social media applications by municipalities in Portugal and districts in Lima. The secondary data comprises the dates of local elections in both nations, starting from 2005, along with the inauguration dates of the newly elected administrations.
For the purpose of analysis, Facebook, Twitter and YouTube have been identified as the three social media applications. This decision was based on the need to encompass one application from each of the three recognized categories of social media: social networking sites, media sharing sites and micro-blogging platforms. The selection of specific applications for examination was based on the availability of prior research concerning their adoption and utilization by local governments. This is significant as, firstly, the presence of such studies serves as an indicator of the importance of the applications under review within the context of local governance, and secondly, it is essential for facilitating comparative analysis.
For each social media application, the original creation dates of the social media profiles were obtained by examining the official accounts of the municipalities on the respective platforms. The process of identifying the official social media accounts was conducted in accordance with the methodology established by Dias et al. (2019) for Ecuador. This involved accessing the links to the designated social media platforms provided on the official municipal websites. In instances where such links were absent, the names of the municipalities were searched using the dedicated search functions of each respective social media application. The official nature of the social media profiles was verified by considering their description and the published content. To ensure that the profiles were actually used by the municipalities, and not simply created, the existence of effective publications and followers was checked.
In Portugal, secondary data pertaining to the municipal elections of 2009, 2013 and 2017 were sourced from the National Elections Commission (https://www.cne.pt). In the case of Peru, information regarding the local elections held in 2010, 2014 and 2018 was acquired from the National Office for Electoral Processes (https://www.onpe.gob.pe). In Portugal, all elections took place in October, with the new government bodies being inaugurated shortly thereafter. In Peru, elections were similarly conducted in October; however, the inaugurations did not occur until January of the subsequent year.
3.2 Curve construction
To evaluate the study’s hypotheses, adoption curves for social media applications were constructed over time for each country (resulting in 2 bar charts representing the number of adoptions in the y-axis and time periods in the x-axis). To ensure comparability, the temporal resolution was modified to achieve an equal average number of adoptions per period for both scenarios. Following extensive testing, a standard of four adoptions per period was established. This value strikes an effective balance between achieving a substantial number of counts per period and maintaining a noteworthy temporal resolution. As a result, a quarterly resolution was implemented for Portugal, while an annual resolution was adopted for Peru.
3.3 Curve fitting
Once adoption curves were constructed, the next step involved fitting these curves. Initially, the optimal fits of the probability density function of the Gaussian distribution, as suggested by the DOI Theory, were determined for the two datasets using a non-linear optimization method. A program was designed in Python for this purpose. The program resorts to the curve fit implementation of the SciPy library, which uses non-linear least squares to fit a function to data. Given an objective function with a set of variable parameters, this implementation optimizes the parameter values to find the best fit of the function to data. Expression 1 shows the objective function that was used to fit the probability density function of the Gaussian distribution to data
Next, a series of tests were conducted to assess how these fits could be improved by considering negative exponentials (formally probability density functions of exponential distributions) associated with the inaugurations of newly elected governments. The Gaussian and the Chi-square distributions were also tested for this purpose, but they yielded less favorable results. The Python program was modified to enable the specification of various alternative objective functions.
The model that provided the best fit for both nations is outlined in Expression 2. This model integrates the presence of a normal curve, as anticipated by the DOI Theory, which includes the initial inauguration date within the specified timeframe, along with negative exponential functions that are centered on the periods following subsequent inaugurations. It is important to note that each country experienced a total of three elections during the observation period. More formally, the model explains adoption over time as the sum of the probability density function of a Gaussian distribution with two probability density functions of exponential distributions. The center of the Gaussian distribution is subject to optimization, while the exponential distributions are centered on inauguration dates of newly elected local governments
4. Results
Figure 2 presents the best fit of the Gaussian distribution to the data and the corresponding residual plots for the Portuguese case. Figure 3 illustrates the corresponding information pertaining to the Peruvian case. The optimized parameters determined for both scenarios are detailed in Table 1. The graphs distinctly indicate that the Gaussian distribution is not an appropriate fit for the data. In the case of Portugal (Figure 2), the data exhibit two peaks that clearly affect the fitting of the Gaussian curve. This is also visible in the residual plot, which displays the differences between the values predicted by the Gaussian curve and the actual empirical values. In the case of Peru (Figure 3), the fitting of the Gaussian curve is affected by the existence of three peaks in the data. Numerically, the fact that the goodness of fit (R2 value in Table 2) is relatively low in both cases (0.41 and 0.21, respectively) suggests that an improved model is needed.
Figure 4 shows the best fit of the proposed model (refer to Subsection 3.3) to the Portuguese dataset. The optimized parameters that were used are shown in Table 3. The analysis of the graph and the residual plot indicates that the suggested model demonstrates a substantial enhancement compared to the Gaussian model. Numerically, this is evident from the improvement of the goodness of fit (from 0.45 to 0.82) and, more significantly from the reduction of 66% of the sum of the squares of the residuals (see Table 2). Thus, the explanation for adoption in Portugal is significantly enhanced by integrating a normal distribution with two negative exponential functions that are centered around the periods when newly elected governments assume office, rather than relying solely on the normal distribution.
The contribution of each component of the proposed model (the normal curve and the two subsequent negative exponentials) for the overall result can be seen in Figure 5. Times of local government inaugurations are also shown in the figure. In an initial phase, adoption follows a normal distribution. The initial inauguration takes place during this stage; however, it does not significantly alter the normal curve. Following this initial phase, there is a surge in adoption characterized by a negative exponential curve. This surge aligns with the date of the second local government inauguration (October 2013; quarter 32). The impact of the third inauguration date (October 2017; quarter 48) is relatively minor. The primary reason for this is that the majority of adoptions took place in earlier periods. Nevertheless, it is clear that the 2017 elections significantly influenced the adoption of social media by local governments in Portugal.
Figure 6 shows the best fit of the proposed model to the Peruvian dataset. The optimized parameters used are shown in Table 3. As was the case for Portugal, the proposed model offers a very significant improvement over the Gaussian model. Numerically, this is shown by an improvement of the goodness of fit from 0.21 to 0.93 and a reduction of 91% of the sum of the squares of the residuals (see Table 2). The contribution of each component of the proposed model can be seen in Figure 7. As was the case with Portugal, the first inauguration (January 2011; Year 6) does not disrupt the normal-shaped curve and there is a negative exponential associated with the second inauguration (January 2015; Year 10). Contrary to what was observed in the Portuguese case, the contribution of the third inauguration date is also significant (January 2019; Year 14). This is due to the slower adoption rate, which causes the disruptive effect to spread over multiple inauguration dates.
5. Discussion
The results presented in the previous section show that the proposed model allows a much-improved fit to both datasets than the normal model. This is achieved by combining the normal curve predicted by the DOI Theory with two negative exponentials. These negative exponentials are centered on the inauguration dates of the local governments, after local elections take place. Consequently, it appears that the elections are the primary factor contributing to the disruptions noted in the curve. In other words, the two hypotheses of the study are fully supported by the results: the curve of social media adoption by Portuguese municipalities exhibits non-linear distortions associated with the occurrence of local elections and the curve of social media adoption by Lima districts exhibits non-linear distortions associated with the occurrence of local elections. This allows answering the research question: elections do have an impact on social media adoption by local governments.
The study does not explain why elections have an impact on social media adoption. While the objective is intriguing, it is regarded as beyond the scope of the study. Nevertheless, there are numerous recognized determinants influencing adoption that may be impacted by elections, thereby aiding in the interpretation of the results. Generally, those determinants can be classified in three main groups: ideological factors, such as changes in the political orientation of the ruling party (Frías-Aceituno et al., 2014; Jans et al., 2016; Megdaglia, 2007; Panagiotopoulos et al., 2012; Pereira et al., 2012); political discontinuity and changes in personal characteristics of the mayor or other elected officials, such as age, gender, academic level and propensity to innovation (Silva et al., 2019; Raimo et al., 2024) and factors related to the electoral process itself, such as political competition (Silva et al., 2019; Faber et al., 2020), electoral participation (Oliveira and Welch, 2013; Guillamón et al., 2016) and the experience in the use of social media for electoral purposes (Lappas et al., 2016). The exploration of the relationship between these factors and the impact of elections is proposed as a topic for future research.
Although it does not provide a final answer as to why elections have an impact on social media adoption by municipalities, the study has very relevant theoretical, methodological and practical implications. In regard to theory, it proposes a new model of social media adoption by local governments over time: there is an initial phase in which adoption follows a normal curve; this is followed by peaks in adoption that correspond to the inauguration dates of newly elected administrations, with the impact of these peaks diminishing exponentially as time progresses. Thus, adoption does not evolve gradually, as observed by Mergel and Bretschneider (2013) and predicted by the DOI theory (Rogers, 2003). Instead, it is characterized by peaks of adoption motivated by disruptive events such as elections.
Regarding methodological implications, the results show that the adoption of social media by local governments evolves in a non-linear manner over time and, consequently, must be modulated using non-linear curves. The research suggests the application of non-linear optimization methods to automatically adjust the parameters of theoretical models in order to fit the data. This is key when non-linear models are at stake.
Regarding practice, the study indicates that elections present a valuable opportunity to promote the integration of innovations associated with new communication technologies within local government practices. Taking into account that this may stem, at least in part, from the experiences politicians undergo during election campaigns (Lappas et al., 2016), it would be prudent for practitioners to explore the possibility of leveraging elections to highlight new communication technologies or their innovative uses. Given that it may be caused by political discontinuity, it may be prudent for them to capitalize on the transition of new administrations to expedite the implementation of innovations.
The primary constraint of the study lies in the utilization of only two country cases to validate the proposed model. Nevertheless, the absence of substantial social, economic and political similarities between these two nations allows a degree of extrapolation of the findings. It is improbable that such disparate country cases would yield remarkably similar results purely by chance. In any case, it is important to test the proposed model using additional cases, ideally from various regions across the globe.
6. Conclusions, implications and future work
The findings of this study indicate that local elections significantly promote the adoption of social media by local governments, a trend that becomes apparent once newly elected officials take office. This effect is characterized by the existence of adoption waves with negative exponential shapes centered at the times of government inaugurations. These waves occur after an initial normal-shaped wave of adoption, as predicted by the DOI Theory.
Using non-linear optimizing techniques to fit theoretical models to the data, it was possible to demonstrate that the proposed model significantly improves results when compared to the normal adoption curve inherent to the DOI Theory. The results were consistent for both the Portuguese and the Peruvian cases. Thus, it can be concluded that elections have a significant impact on the subsequent adoption of social media by local governments. This conclusion effectively responds to the research question outlined in the study.
For researchers, this finding is relevant because it draws attention to the need of considering the impact of elections when studying the adoption of innovations by local governments, namely in the case of social media or other communication technologies. For this purpose, the theoretical curve of adoption proposed in this article may prove to be a valuable instrument.
For practitioners, the study shows that there is a time window after the newly elected governments take office that can be used to accelerate the adoption of innovations, particularly in the case of new communication technologies. Also, election campaigns can be a good opportunity to showcase innovations that can subsequently be adopted by local governments.
In relation to possible developments of the study, two complementary paths should be followed: to study the factors that contribute to explain the impact of elections on social media adoption; and to replicate the study across countries and regions worldwide and for other technologies, to assess to what extent its results can be generalized. For the first path, the perceptions of the players involved can be captured using qualitative research approaches. For the second path, the quantitative methods presented in this article can be reused.







